---
title: "Delete a message"
method: DELETE
path: "/api/emails/{address}/messages/{id}"
tags: ["Email"]
---

# Delete a message

`DELETE /api/emails/{address}/messages/{id}`

## Request

- Base URL: `https://domani.run`
- URL: `https://domani.run/api/emails/{address}/messages/{id}`
- Auth: HTTP bearer

Move a message to Trash. This is reversible. Use the lifecycle action with delete_permanently and an email:delete token to erase a message already in Trash.

## Path parameters

- `address` string, required
- `id` string, required

## Response `200`

Message deleted

- object
  - `id` string
  - `deleted` boolean

## Other responses

- `404`: Mailbox or message not found

---

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