---
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

## Changes

- **2026-05-27** `354d90657cdd` — 1 info
  - api operation id `me.messages.DeleteAttachments` removed and replaced with `deleteAttachment`
- **2026-05-26** `c6fc1d98f528` — 1 info
  - api operation id `deleteAttachment` removed and replaced with `me.messages.DeleteAttachments`

[Change history](https://skmtc.dev/ballerina-platform/apis/microsoft-graph-mail-api/changes/me/messages/:messageId/attachments/:attachmentId/delete.md)

---

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