DELETE/gists/{gist_id}/comments/{comment_id}

Delete a gist comment

Removes a specific comment from a gist. Use gist_id and comment_id to identify the gist-comment pair; the operation returns no content when the comment is deleted.

2 parameters
gist_idstringrequired
The unique identifier of the gist containing the comment.
comment_idintegerrequired
The unique identifier of the comment to delete.

4 status codes
204Returns no content after the gist comment is deleted.
304Returned when the gist comment has not changed since the last request.
403Returned when the authenticated user is not permitted to delete the gist comment.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the gist or comment does not exist.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned when the authenticated user cannot delete the comment. A 404 is returned when the gist_id path parameter or comment_id path parameter does not identify an existing gist comment.