Delete Rasters

URL:
https://<imageservice-url>/delete
Methods:
POST
Required Capability:
Edit
Version Introduced:
10.1

Description

The Delete Rasters operation is performed on an image service resource to delete one or more rasters from an image service.

You can provide arguments to the Delete Rasters operation as query parameters defined in the following parameters table:

Request parameters

ParameterDetails

f

The response format. The default response format is html .

Values: html | json

rasterIds

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 the following for rasterIds : 37,462 .

https://myserver.mydomain.com/arcgis/rest/sampleImage/ImageServer/delete?rasterIDs=37,462

JSON Response syntax

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
  "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

1
2
3
4
5
6
7
8
9
10
11
12
{
  "deleteResults" : [
    {
      "rasterId" : 37,
      "success" : true
    },
    {
      "rasterId" : 462,
      "success" : true
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close