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

# Delete message

`DELETE /messages/{messageId}`

## Request

- Base URL: `https://inboxapp.com/api/v2`
- URL: `https://inboxapp.com/api/v2/messages/{messageId}`
- Auth: HTTP bearer

## Path parameters

- `messageId` string, required

## Query parameters

- `scope` 'self' | 'all', required: `self` deletes for the account link only, which needs `message:delete:self`. `all` unsends for every participant, which needs `message:unsend`.

## Response `200`

OK

- MessageDeletion
  - `messageId` string, required
  - `scope` 'self' | 'all', required: `self` deletes for the account link only, which needs `message:delete:self`. `all` unsends for every participant, which needs `message:unsend`.
  - `deletedAt` string, date-time, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error
- `502`: Bad Gateway
- `503`: Service Unavailable

---

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