Remove Resources

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 and the organization administrator.

Request Parameters

Parameter

Details

[Common Parameters]

For a complete listing, see Common parameters.

resource

Resource item to be removed. Resource prefix needs to be specified if the file resource has one.

Example: resource=image/banner.png

deleteAll

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

Default is false.

Response Properties

Property

Details

success

Indicates if the operation was successful.

Example Usage

URL for Remove Resources

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

JSON Response Syntax

{
  "success": true
}

JSON Response Example

{
  "success": true
}

or

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

7/5/2017