Sample - GitHub REST API
DELETE/repos/{owner}/{repo}/pulls/comments/{comment_id}

Delete a pull request review comment

Deletes a review comment from a pull request in a repository. Provide the repository identifiers and the unique comment_id of the comment to remove. A successful deletion returns no response body.

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

3 parameters
ownerstringrequired
The account owner of the repository; the name is not case sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case sensitive.
comment_idintegerrequired
The unique 64-bit integer identifier of the review comment to delete.

2 status codes
204Returns no content after the review comment has been deleted.
404Returned when the repository or review comment does not exist.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the repository or review comment cannot be found. comment_id must be the comment's 64-bit integer identifier, and owner and repo must identify the target repository.