Permanently deletes a comment.
Returns an empty response when the comment has been deleted.
An unexpected client error.
curl -X DELETE https://api.box.com/2.0/comments/12345 \
-H 'Authorization: Bearer <ACCESS_TOKEN>'
await client.CommentsManager.DeleteAsync(id: "11111");
BoxComment comment = new BoxComment(api, "id");
comment.delete();
client.comment(comment_id='12345').delete()
client.comments.delete('11111')
.then(() => {
// deletion successful — no value returned
});
client.comments.delete(commentId: "55555") { (result: Result<Void, BoxSDKError>) in
guard case .success = result else {
print("Error deleting comment")
return
}
print("Comment deleted")
}