---
title: "Delete a message thread from the database."
method: DELETE
path: "/message-threads/{messageThreadID}"
tags: ["MessageThreads"]
---

# Delete a message thread from the database.

`DELETE /message-threads/{messageThreadID}`

Delete a message thread from the database and also deletes all the messages in the thread.

## Path parameters

- `messageThreadID` 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-04-14** `fb49d4f0d2aa` — 1 breaking, 1 warning
  - added the new path request parameter `messageThreadID`
  - deleted the `path` request parameter `messageID`
- **2024-01-11** `65947cee42ef` — 1 info
  - endpoint added
- **2023-12-22** `7e5887f7aceb` — 1 breaking
  - api removed without deprecation

[Change history](https://skmtc.dev/ndolestudio/apis/httpsms-api-reference/changes/message-threads/:messageThreadID/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)
