Skip To Content

/[commentID]/delete: Delete Comment

  • URL:https://[root]/content/items/[itemID]/comments/[commentID]/delete(POST only)

Example Usage

URL for Delete Comment

 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


            {
  "success": true | false,
  "commentId": "<comment id>"
}

JSON Response Example


            {
  "success": true,
  "commentId": "0d59cee0f5394417a9a218a5038905eb"
}

or 

{"error": {
 "code": 400,
 "messageCode": "CONT_0110",
 "message": "Unable to delete a comment that has replies.",
 "details": []
}}