Skip To Content
ArcGIS Developer
Dashboard

/delete: Delete Item

  • URL:https://[root]/content/users/[userName]/items/[itemID]/delete(POST only)

Example Usage

URL for Delete Item

 https://www.arcgis.com/sharing/rest/content/users/jsmith/items/b512083cd1b64e2da1d3f66dbb135956/delete

Description

The Delete Item operation (POST only) removes both the item and its link from the user's folder by default. This operation is available to the user and to the administrator of the organization to which the user belongs.

For ArcGIS Online organizations, the deleted item operation moves the item, if supported, to the recycle bin for 14 days before it is permanently deleted. Any unsupported items are permanently deleted. Learn more about permanently deleting and restoring items.

Note:

The deleteItem operation has changed at 10.6.1 so that when a service item that references a published service on a federated server is deleted, the corresponding service is also deleted from the server. If the item represents a capability for a service, like WMS, then the capability will be removed from its parent map service.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

force

In edge cases where a server has been removed from a portal without unfederating, orphaned items may be left behind in the portal. In such cases, a client can pass force = true to force deletion of these items.

This property was introduced at 10.6.1.

permanentDelete

Deletes an item permanently. The default is false. The unsupported items are permanently deleted even if the value is set to false.

Values: true | false

Example

https://org.arcgis.com/sharing/rest/content/users/jsmith/item/b512083cd1b64e2da1d3f66dbb135956/delete?permanentDelete=true
Note:

Available only for ArcGIS Online organizations. See here for a list of unsupported account types and items.

Response Properties

PropertyDetails
success

Indicates if the operation was successful.

itemId

The ID of the deleted item.

JSON Response Syntax


            {
  "success": true | false,
  "itemId": "<item id>"
}

JSON Response Example


            {
  "success": true,
  "itemId": "b512083cd1b64e2da1d3f66dbb135956"

}