FRAMES | NO FRAMES Description | Parameters | Examples | Response
Delete Rasters (Operation)
URL http://<imageservice-url>/delete (POST only)
Parent Resource Image Service
Required Capability Edit

Description

This operation is supported from 10.1 onwards.

The delete rasters operation is performed on an image service resource.

The delete rasters operation deletes one or more rasters in an image service (POST only).

You can provide arguments to the delete rasters operation as query parameters defined in the parameters table below.

Parameters

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

Values: html | json
rasterIds Description: The object IDs of raster catalog items to be deleted.

Syntax: rasterIds=<rasterId1>, <rasterId2>

Example: rasterIds=37, 462

Example Usage

Delete two rasters from an image service by specifying following for rasterIds:
37,462

JSON Response Syntax

{
  "deleteResults" : [
    {
      "rasterId" : <rasterId1>,
      "success" : <true | false>,
      "error" : { //only if success is false
        "code" : <code1>,
        "description" : "<description1>"
      }
    },
    {
      "rasterId" : <rasterId2>,
      "success" : <true | false>,
      "error" : { //only if success is false
        "code" : <code2>,
        "description" : "<description2>"
      }
    }
  ]
}

JSON Response Example

{
  "deleteResults" : [
    {
      "rasterId" : 37,
      "success" : true
    },
    {
      "rasterId" : 462,
      "success" : true
    }
  ]
}