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

# Delete message

`DELETE /me/messages/{messageId}`

Delete a message in the specified user's mailbox, or delete a relationship of the message.

## Headers

- `If-Match` string

## Response `204`

If successful, the message is deleted and no content is returned. Unless, the message 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/versions/af62694b9f2d/schema)
