---
title: "Delete a message from the database."
method: DELETE
path: "/messages/{messageID}"
tags: ["Messages"]
---

# Delete a message from the database.

`DELETE /messages/{messageID}`

Delete a message from the database and removes the message content from the list of threads.

## Path parameters

- `messageID` string, required

## Response `204`

No Content

- ResponsesNoContent
  - `message` string, required
  - `status` string, required

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

## Changes

> 25 revisions in range; 1 could not be searched.

- **2024-01-10** `8d3e1e3fad25` — 1 info
  - endpoint added
- **2023-12-22** `7e5887f7aceb` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ndolestudio/apis/httpsms-api-reference/changes/messages/:messageID/delete.md)

---

[API](https://skmtc.dev/ndolestudio/apis/httpsms-api-reference.md) · [All operations](https://skmtc.dev/ndolestudio/apis/httpsms-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ndolestudio/httpsms-api-reference/revisions/7e5d7ce790b3/schema)
