/[folderID]/delete: Delete Folder

URL:
https://[root]/content/users/[userName]/[folderID]/delete
Methods:
POST

Example Usage

URL for Delete Folder

Use dark colors for code blocksCopy
1
https://www.arcgis.com/sharing/rest/content/users/jsmith/0bffc1c3fe984a17bd9ae705b3ca7e22/delete

Description

The delete user folder operation (POST only) is available only on the user's non-root folders. The user's root folder cannot be deleted.

Deleting a folder also deletes all items that it contains (both the items and the links).

Request Parameters

ParameterDetails

[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

PropertyDetails

success

Indicates if the operation was successful.

folder

Folder JSON object that describes the folder just deleted. Contains the username of the person who deleted the folder, the id of the folder, and the title of the folder.

JSON Response Syntax

Use dark colors for code blocksCopy
1
{  "success": true, "folder": { "username": "<username>", "id": "<folder id>", "title": "<folder title>" }}

JSON Response Example

Use dark colors for code blocksCopy
1
{  "success": true, "folder": { "username": "jsmith", "id": "0bffc1c3fe984a17bd9ae705b3ca7e22", "title": "Non-motorized trials" }}

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