---
title: "Delete chats (bulk)"
method: POST
path: "/api/v2/chats/delete"
tags: ["Chats"]
---

# Delete chats (bulk)

`POST /api/v2/chats/delete`

<a class="try-sandbox-link" href="https://sandbox.textmagic.com/#/Chats/deleteChatsBulk" target="_blank">Try in sandbox</a><br>Delete chats by given IDs or delete all chats.

## Request body

- object
  - `ids` string — Entity ID(s), separated by comma.
  - `all` boolean — Entity ID(s), separated by comma.
  - `status` 'a' | 'c' | 'd' — Default is an empty string. If set, all entities with specified status will be affected.

## Response `204`

Request executed with success.

## Other responses

- `400` — Bad request.
- `401` — Unauthorized request.

---

[API](https://skmtc.net/textmagic/apis/textmagic-api.md) · [All operations](https://skmtc.net/textmagic/apis/textmagic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/textmagic/textmagic-api/revisions/3e4029d19684/schema)
