FRAMES | NO FRAMES Description | Parameters | Response
Clear REST Cache (Operation)

This is an archive of a previous version of the ArcGIS REST API. The current version can be found at http://resources.arcgis.com/en/help/arcgis-rest-api/

URL http://<admin-url>/cache/clear

Description

The clear REST cache operation. This operation explicitly clears the REST API cache immediately.

Clients need a security token to clear the REST cache. You can get a security token by using the Generate Admin Token operation.

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json

Example Usage

Example 1: Use security token generated using Generate Admin Token operation to clear the REST cache.

http://<host>/arcgis/rest/admin/cache/clear?token=89dw7r0jfFDKWgDa7bZHVvttqiEv7sX7UnOH1oe_Mz-qqQ6oDg..&f=json

JSON Response Syntax

{
  "success": true //the value will always be true. Failure will result in an error response.
}

JSON Response Example

{
  "success": true
}