Delete Cache utility
The Delete Cache utility allows you to delete map or image service caches using the command line. This utility deletes the entire cache, including the tiling scheme. If you just want to delete tiles while leaving the tiling scheme intact, use the Manage Cache Tiles utility.
Parameters
Parameter | Details |
---|---|
-u | The name of an ArcGIS Server user who will execute the utility. The user must have the appropriate level of privileges to execute the action. |
-p | The password of the user who was specified with the -u parameter. |
-s | The URL of the site, in the format http://myserver:6080. |
-n | The name of the service whose cache you want to delete. This is provided using the syntax <Service name>:<Service type>. |
-i | The number of instances of ArcGIS Server's CachingTools service to use for the job. See Allocation of server resources to caching. |
-t | Passes the token to the server when the utility is executed. If this parameter is omitted, HTTP authentication is used. |
-h | Prints help for the utility. |
Example
The following example deletes the cache of a map service named SanDiego.
<Python installation location>\python.exe "C:\Program Files\ArcGIS\Server\tools\admin\deletecache.py" -u admin -p admin -s http://gisserver.domain.com:6080 -n SanDiego:MapServer -i 3 -t