---
title: "Delete attachment"
method: DELETE
path: "/me/messages/{messageId}/attachments/{attachmentId}"
tags: ["me.message"]
---

# Delete attachment

`DELETE /me/messages/{messageId}/attachments/{attachmentId}`

Delete an attachment from a user message.

## Headers

- `If-Match` string

## Response `204`

If successful, the attachment is deleted and no content is returned. Unless, the attachment may not exist or the caller may lack the required permission.

## Other responses

- `4XX` — error
- `5XX` — error

---

[API](https://skmtc.net/ballerina-platform/apis/microsoft-graph-mail-api.md) · [All operations](https://skmtc.net/ballerina-platform/apis/microsoft-graph-mail-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ballerina-platform/microsoft-graph-mail-api/revisions/af62694b9f2d/schema)
