---
title: "Delete message"
method: DELETE
path: "/v1/messages/{id}"
tags: ["messages"]
---

# Delete message

`DELETE /v1/messages/{id}`

## Request

- Base URL: `https://api.openmail.sh`
- URL: `https://api.openmail.sh/v1/messages/{id}`
- Auth: HTTP bearer

Delete a message from its inbox.

## Path parameters

- `id` string, required

## Response `204`

Message deleted

## Other responses

- `401`: Missing, invalid, or expired API key
- `403`: API key is inbox-scoped, or is not scoped to this message's inbox. Deleting mail needs an account-wide or pod-scoped key.
- `404`: Message not found

---

[API](https://skmtc.dev/openmail/apis/openmail-api.md) · [All operations](https://skmtc.dev/openmail/apis/openmail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openmail/apis/openmail-api/revisions/b943eecca7e2?raw)
