Sample - GitHub REST API
DELETE/gists/{gist_id}/comments/{comment_id}

Delete a gist comment

Deletes a specific comment from a gist. Supply both gist_id and comment_id to identify the gist and the comment to remove. A successful response contains no response body.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

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

4 status codes
204Confirms that the gist comment was deleted successfully and returns no response body.
304Returned when the gist comment has not changed since the request's conditional cache value.
403Returned when the authenticated user is forbidden from deleting the gist comment.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the specified gist or comment does not exist or is not accessible.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned when the authenticated user is not permitted to delete the comment. A 404 is returned when gist_id or comment_id does not identify an accessible gist comment; provide the gist identifier and the comment's integer identifier.