/removeResources: Remove Resources

URL:
https://[root]/content/users/[userName]/items/[itemID]/removeResources
Methods:
POST

Example Usage

URL for Remove Resources

Use dark colors for code blocksCopy
1
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:

Use dark colors for code blocksCopy
1
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

Use dark colors for code blocksCopy
1
2
3
{
  "success": true
}

JSON Response Example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
{
  "success": true
}

or

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

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