Delete Comment

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

Parameter

Details

[Common Parameters]

For a complete listing, see Common parameters.

Response Properties

Property

Details

success

Set to true if the comment was deleted successfully.

commentId

The ID of the deleted comment.

Example Usage

URL for Delete Comment

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

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": []
}}

9/13/2017