Remove comment

delete
https://api.box.com/2.0
/comments/:comment_id

Permanently deletes a comment.

Request

bearer [ACCESS_TOKEN]
application/json

Path Parameters

stringin pathrequired
12345

The ID of the comment.

Response

none

Returns an empty response when the comment has been deleted.

application/jsonClient error

An unexpected client error.

delete
Remove comment
You can now try out some of our APIs live, right here in the documentation.
Log in

Request Example

cURL
curl -i -X DELETE "https://api.box.com/2.0/comments/12345" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
.NET
await client.CommentsManager.DeleteAsync(id: "11111");
Java
BoxComment comment = new BoxComment(api, "id");
comment.delete();
Python
client.comment(comment_id='12345').delete()
Node
client.comments.delete('11111')
    .then(() => {
        // deletion successful — no value returned
    });
iOS
client.comments.delete(commentId: "55555") { (result: Result<Void, BoxSDKError>) in
    guard case .success = result else {
        print("Error deleting comment")
        return
    }

    print("Comment deleted")
}