- URL:
- https://[root]/content/users/[userName]/deleteItems
- Methods:
POST
Example Usage
The following is a sample ArcGIS Online POST request for the delete
operation:
POST /sharing/rest/content/users/jsmith/deleteItems HTTP/1.1
Host: org.arcgis.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
items=93b54c8930ae46d9a00a7820cb3ebbd1,bb8e3d443ab44878ab8315b00b0612ca&permanentDelete=false&f=pjson
The following is a sample ArcGIS Enterprise POST request for the delete
operation:
POST /<context>/sharing/rest/content/users/jsmith/deleteItems HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []
items=93b54c8930ae46d9a00a7820cb3ebbd1,bb8e3d443ab44878ab8315b00b0612ca&f=pjson
Description
The delete
operation deletes a batch of items.
For ArcGIS Online organizations, the deleted
operation moves all the supported items to the recycle bin for 14 days before they are permanently deleted. Any unsupported items in the batch are permanently deleted. Learn more about permanently deleting and restoring items.
Request Parameters
Parameter | Details |
---|---|
| A comma separated list of items to be deleted. |
| This parameter was introduced in the ArcGIS Online June 2024 update. Deletes a batch of items permanently. The default is Values: |
| The response format. The default format is Values: |
Response Properties
Property | Details |
---|---|
| An array of JSON objects, one for each item requested. Each object is made up of the |
JSON Response Syntax
{"results": [{
"itemId": "<item id>",
"success": true | false,
"error": {
"code": code,
"message": "<error message>"
}
}]
}
JSON Response Example
{"results": [
{
"itemId": "93b54c8930ae46d9a00a7820cb3ebbd1",
"success": true,
},
{
"itemId": "bb8e3d443ab44878ab8315b00b0612ca",
"success": false,
"error": {
"code": 500,
"message": "Item does not exist or is inaccessible"
}
}
]}