# Delete a commit comment

> Delete a commit comment, named by comment_id.

<div class="g1t-endpoint"><span class="g1t-method" data-method="delete">DELETE</span><code>/repos/{owner}/{name}/comments/{comment_id}</code></div>

Its author may, and so may anyone with the Maintain role or higher. This cannot be undone. Publishes commit_comment.deleted.

Answers `204` with no body. Its author, or someone with the Maintain role or higher.

- **Authentication:** Required. Send an [access token](/reference/api/#authentication) as `Authorization: Bearer`.
- **MCP tool:** [`repository`](/reference/mcp/#repository) with `action` `delete_commit_comment`, and the same inputs
- **Scope:** An access token needs [`issues:write`](/guides/authentication/#scopes).

## Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `owner` | string | Yes | The workspace that owns the repository. |
| `name` | string | Yes | The repository's name. |
| `comment_id` | string | Yes | The commit comment's id, as [`list_commit_comments`](/reference/api/commit-comments/list-commit-comments/) and [`list_repo_commit_comments`](/reference/api/commit-comments/list-repo-commit-comments/) give it. |

## Example request

```sh
curl -X DELETE https://api.g1t.sh/repos/flagon-io/hello/comments/ccm_01m4a2r7k3d9f1h5j8n2q6t0w4 \
  -H "Authorization: Bearer $G1T_TOKEN"
```

## Example response

A successful request answers `200`.

## Errors

A failed request answers with one of these statuses and a body like `{"error": {"code": "not_found", "message": "Repository not found."}}`. See [errors](/reference/api/#errors).

| Status | Code | When |
| --- | --- | --- |
| 401 | `unauthenticated` | A token is required, or the one sent is not valid. |
| 403 | `forbidden` | The token is valid but not allowed to do this, such as a member-only change, or a token without the scope it needs. |
| 404 | `not_found` | It does not exist, or you cannot see it. |
| 409 | `conflict` | The request conflicts with the current state. |
| 422 | `invalid` | The input is not valid. `message` says which field and why. |
