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

# Delete all messages from a conversation

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

## Request

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

Deletes all messages from a specific conversation. This operation irrevocably deletes all messages in the specified conversation from the TalkJS database, and deletes the messages in real-time from any potentially connected clients. 

Once you have deleted all messages from a conversation, you can't get them back.

**Note:** This endpoint doesn't generate webhooks.

## Path parameters

- `appId` string, required
- `conversationId` 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)
