/[commentID]/delete: Delete Comment

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

Example Usage

URL for Delete Comment

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

Use dark colors for code blocksCopy
1
2
3
4
{
  "success": true | false,
  "commentId": "<comment id>"
}

JSON Response Example

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