Join BoxWorks 2024 to discover what's possible with content and AI!
Register now!Permanently deletes a comment.
12345
The ID of the comment.
Returns an empty response when the comment has been deleted.
An unexpected client error.
curl -i -X DELETE "https://api.box.com/2.0/comments/12345" \
-H "authorization: Bearer <ACCESS_TOKEN>"
await client.comments.deleteCommentById(newComment.id!);
client.comments.delete_comment_by_id(new_comment.id)
await client.Comments.DeleteCommentByIdAsync(commentId: NullableUtils.Unwrap(newComment.Id));
try await client.comments.deleteCommentById(commentId: newComment.id!)
BoxComment comment = new BoxComment(api, "id");
comment.delete();
client.comment(comment_id='12345').delete()
await client.CommentsManager.DeleteAsync(id: "11111");
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")
}