---
title: "Delete a comment attachment"
method: DELETE
path: "/repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}"
tags: ["issue"]
---

# Delete a comment attachment

`DELETE /repos/{owner}/{repo}/issues/comments/{id}/assets/{attachment_id}`

## Path parameters

- `owner` string, required
- `repo` string, required
- `id` integer, required
- `attachment_id` integer, required

## Response `204`

APIEmpty is an empty response

## Other responses

- `404` — APIError is error format response
- `423` — APIRepoArchivedError is an error that is raised when an archived repo should be modified

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
