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 only want to delete tiles while leaving the tiling scheme intact, use the Manage Cache Tiles utility.
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. If your site is configured with web-tier authentication, specify a built-in user, such as the primary site administrator account.
The password of the user who is specified with the -u parameter.
The URL of the site, in one of the following formats:
The name of the service whose cache you want to delete. This is provided using the syntax <Service name>:<Service type>.
The number of instances of the ArcGIS Server CachingTools service to use for the job. See Allocation of server resources to caching.
Prints help for the utility.
The following example deletes the cache of a map service named SanDiego.
At 10.2.2 and earlier versions, you were required to reference the Python directory and Python extension (.py) when executing the utilities from the command line. At 10.3 and later versions, this is not required. You can run the utilities directly from the command line without referencing these Python dependencies.
If you implemented logic that automates the execution of these utilities, you need to update your scripts to remove the Python dependencies. The following are examples:
- <ArcGIS Server installation location>/arcgis/server/tools/python
- The .py extension when referring to the name of the command line utility
See the following example for correct usage:
<ArcGIS Server installation location>/arcgis/server/tools/admin/deletecache -u admin -p admin -s http://gisserver.domain.com:6080 -n SanDiego:MapServer -i 3