---
title: "Delete an attachment"
method: DELETE
path: "/projects/{project_id}/error-attachments/{attachment_id}"
tags: ["error-tracking"]
---

# Delete an attachment

`DELETE /projects/{project_id}/error-attachments/{attachment_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/error-attachments/{attachment_id}`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `attachment_id` integer, required

## Response `204`

Attachment deleted; its bytes are back in the quota

## Other responses

- `401`: Not authenticated
- `403`: Error tracking write permission required
- `404`: No such attachment in the project
- `500`: Internal server error
- `503`: Blob storage is not set up or the file could not be deleted from it

## Changes

- **2026-11-21** `451aa64395bb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/error-attachments/:attachment_id/delete.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
