Skip To Content

/removeResources: Remove Resources

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

Example Usage

URL for Remove Resources

https://www.arcgis.com/sharing/rest/content/users/jsmith/items/0c66beb52dff4994be67937cdadbdb1f/removeResources

Description

The remove resources operation (POST only) allows to remove one or all file resources on an item. The item size is updated once resource files are deleted.

The operation is only available to the item owner, organization administrator and members of the group with item update capability.

Request Parameters

ParameterDetails
[Common Parameters]

For a complete listing, see Common parameters.

resource

Resource item to be removed. The full file resource path/name needs to be specified.

Example: resource=cim/images/banner.png

deleteAll

(Optional) If true, all file resources are removed.

Default is false.

Response Properties

PropertyDetails
success

Indicates if the operation was successful.

JSON Response Syntax

{
  "success": true
}

JSON Response Example

{
  "success": true
}

or

{"error": {
 "code": 404,
 "message": "Resource does not exist or is inaccessible.",
 "details": []
}}