- URL:
- https://[root]/content/items/[itemID]/comments/[commentID]/delete
- Methods:
POST
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
Parameter | Details |
---|---|
| For a complete listing, see Common parameters. |
Response Properties
Property | Details |
---|---|
| Set to true if the comment was deleted successfully. |
| 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": []
}}