---
title: "Delete a message"
method: DELETE
path: "/v1/{appId}/conversations/{conversationId}/messages/{messageId}"
tags: ["Messages"]
---

# Delete a message

`DELETE /v1/{appId}/conversations/{conversationId}/messages/{messageId}`

## Request

- Base URL: `https://api.talkjs.com`
- URL: `https://api.talkjs.com/v1/{appId}/conversations/{conversationId}/messages/{messageId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
- TypeScript: <https://skmtc.dev/talkjs/apis/talkjs-api/docs/v1/:appId/conversations/:conversationId/messages/:messageId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes a single message from a specific conversation. This operation irrevocably deletes the message from both the TalkJS database, and in real-time from any connected clients.

If the deleted message contains an attachment, the attachment is also removed from storage.

When you delete a message, TalkJS sends a `message.deleted` webhook event.

## Path parameters

- `appId` string, required
- `conversationId` string, required
- `messageId` string, required

## Response `200`

Empty response

- object: Empty response

## Other responses

- `400`: Bad request
- `401`: Authorization information is missing or invalid.
- `404`: Resource not found
- `429`: Too many requests
- `500`: Internal server error

---

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