Delete Tiles

Description

The deleteTiles operation supports deleting tiles from an existing cached service.

Parameters

Parameter

Details

f

Description: The response format. The default response format is html .

Valid values are: html | json | pjson.

deleteTiles

Description: The deleteTiles parameter deletes tiles from an existing cached service.

extent

Description: If specified, the tiles within this extent will be deleted or will be deleted based on the service's full extent.

Example:

6224324.092137296,487347.5253569535,11473407.698535524,4239488.369818687 the minx, miny, maxx, maxy values or,

{"xmin":6224324.092137296,"ymin":487347.5253569535,"xmax":11473407.698535524,"ymax":4239488.369818687,"spatialReference":{"wkid":102100}} the JSON representation of the Extent object.

levels

Description: The level to delete. This parameter is optional.

f

Description: The response format. The default response format is html .

Valid values are: html | json | pjson.

JSON Response Syntax

{
  "id":<id>,
  "name": <service name>,
  "itemId": <item id>,
  "status": <success | failed>,
  "type": <map service>,
  "jobId": <job id>,
  "message" : "<message>"
}
or 
{
  "error": {
    "code": <code>,
    "message": "<description>",
    "details": [
      "<message>"
    ]
  }
}

JSON Response Example (succeeds)

{
  "id" : "82cc6785db3dcd0d", 
  "name" : "World",  
  "itemId" : "87147b59c92c44de92152730634aa1a4", 
  "status" : "Success",
  "type" : "Map Service", 
  "jobId" : "bee23b456506f414", 
  "message" : "success"
}

JSON Response Example (fails)

{
  "error" : 
  {
    "code" : 404, 
    "message" : "Unable to delete tiles.",
    "details" : [ "'levels' parameter cannot be empty" ]
  }
}

9/13/2017