/[commentID]/delete: Delete Comment

URL:
https://[root]/content/items/[itemID]/comments/[commentID]/delete
Methods:
POST

Example Usage

URL for Delete Comment

1
https://www.arcgis.com/sharing/rest/content/items/a50b5179b49a4256a248c7b5ffb82dd7/comments/0d59cee0f5394417a9a218a5038905eb/delete

Description

Deletes the particular comment (POST only). This functionality is available to authenticated users who originally created the comment and item owners on items that they own. Comment can not be deleted if it has reply.

Request Parameters

ParameterDetails

[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

PropertyDetails

success

Set to true if the comment was deleted successfully.

commentId

The ID of the deleted comment.

JSON Response Syntax

1
2
3
4
{
  "success": true | false,
  "commentId": "<comment id>"
}

JSON Response Example

1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "success": true,
  "commentId": "0d59cee0f5394417a9a218a5038905eb"
}

or

{"error": {
 "code": 400,
 "messageCode": "CONT_0110",
 "message": "Unable to delete a comment that has replies.",
 "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