/removeResources: Remove Resources

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

Example Usage

URL for Remove Resources

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:

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

1
2
3
{
  "success": true
}

JSON Response Example

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close