In November 2020, the Apigee Edge API reference documentation will move to a new experience based on the Apigee integrated portal and visitors to this site will be redirected.

You are viewing the Apigee Edge API reference documentation. For the main product docs, and to search all docs, go to

Clear a cache entry

Resource Summary


Content Type






Clear a cache entry

Clears a cache entry, which is identified by the full CacheKey prefix and value. For more on cache keys, see Working with cache keys.

To learn how to clear a cache using policies, see Example: General purpose caching.

To use the API call, specify the complete CacheKey (any Prefix and KeyFragments) and the value of the entry that you want to clear.

For example, for the following Cache entry:


Clear with the following:

CacheKey is specified in the Cache or Response Cache policy responsible for interacting with the specified Cache resource.

Resource URL /organizations/{org_name}/environments/{env_name}/caches/{cache_name}/entries/{entry}

Query Parameters

Name Values Description

Specifies the action to take against the entry in the specified cache. The only valid value is 'clear'.

Header Parameters

Name Values Description

Specify the content type as application/octet-stream.

Request Body

org_name Mention the organization name true

env_name Mention the environment name true

cache_name Mention the cache name true

entry Mention the cache entry to clear true

HTTP Basic

OAuth 2.0



Make a request and see the response.

Make a request and see the response.

Make a request and see the response.


Help or comments?

  • If something's not working: Ask the Apigee Community or see Apigee Support.
  • If something's wrong with the docs: Click the "Send Feedback" button.
    (Incorrect? Unclear? Broken link? Typo?)