---
title: "DELETE /v2/messages/{message_id}/attachments/{attachment_id}"
method: DELETE
path: "/v2/messages/{message_id}/attachments/{attachment_id}"
tags: ["messages", "attachments"]
---

# DELETE /v2/messages/{message_id}/attachments/{attachment_id}

`DELETE /v2/messages/{message_id}/attachments/{attachment_id}`

(for drafts only) delete temporary file and remove attachment reference from the draft.

## Path parameters

- `message_id` string, required
- `attachment_id` string, required

## Response `204`

Successful deletion. No body is returned

## Other responses

- `401` — Unauthorized access
- `403` — Forbidden action. Server is refusing to delete this ressource
- `404` — message or attachment not found

---

[API](https://skmtc.net/caliopen/apis/caliopen-http-rest-api.md) · [All operations](https://skmtc.net/caliopen/apis/caliopen-http-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/caliopen/caliopen-http-rest-api/revisions/f32b5d08284d/schema)
