---
title: "Clear Chat Queue"
method: DELETE
path: "/v1/replica/{id}/chats/{chatId}/queue"
tags: ["Replica"]
---

# Clear Chat Queue

`DELETE /v1/replica/{id}/chats/{chatId}/queue`

Removes all queued messages from a chat. The currently processing message is not interrupted.

## Path parameters

- `id` string, uuid, required
- `chatId` string, required

## Response `200`

Queue cleared successfully

- QueueMutationResponse — Result of a queue mutation.
  - `success` boolean, required — Whether the queue mutation changed the queue.
  - `queue` QueuedMessageInfo[], required
    - `id` string, required — Unique queued message ID.
    - `message` string, required — Queued message text.
    - `queuedAt` string, date-time, required — When the message was queued.
    - `senderUserId` string — Identifier of the user who queued the message.
    - `senderEmail` string — Email of the user who queued the message.
    - `senderDisplayName` string — Display name of the user who queued the message.

## Other responses

- `401` — Unauthorized - Invalid or missing API key
- `404` — Resource not found
- `500` — Internal server error

---

[API](https://skmtc.net/tryreplicas/apis/replica-api.md) · [All operations](https://skmtc.net/tryreplicas/apis/replica-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryreplicas/replica-api/versions/aa3b4c932f7a/schema)
