---
title: "Bulk-delete chat sessions"
method: POST
path: "/api/v1/me/chats/bulk-delete"
tags: ["humanApiBulkDeletions"]
---

# Bulk-delete chat sessions

`POST /api/v1/me/chats/bulk-delete`

Starts an asynchronous job that soft-deletes up to 100 chat rooms. The
Location resource is polled until `completed` or `failed`; a completed job
may contain individual failed results, including `not_found` for a malformed
target ID. If the job itself fails, the target it stopped on carries
`delete_failed` and every target behind it carries `not_attempted`, which
means it was left untouched and is safe to resubmit.

## Headers

- `X-API-Key` string, required

## Request body

- BulkDeleteChatsRequest
  - `ids` string[], required — Unique target IDs in the order results must be returned.

## Response `202`

Bulk deletion accepted

- BulkDeletionJobResponse
  - `data` BulkDeletionJob, required
    - `completed_at` string, date-time, nullable, required
    - `failed` integer, required
    - `force` boolean, required
    - `id` string, uuid, required
    - `inserted_at` string, date-time, required
    - `processed` integer, required
    - `resource_type` 'chat' | 'agent', required
    - `results` BulkDeletionItem[], required — Per-ID results in the exact order supplied by the create request.
      - `error` BulkDeletionItemError, required
        - `code` 'not_found' | 'forbidden' | 'execution_history_exists' | 'delete_failed' | 'not_attempted', required
        - `message` string, required
      - `id` string, required
      - `status` 'pending' | 'succeeded' | 'failed', required
    - `started_at` string, date-time, nullable, required
    - `status` 'queued' | 'processing' | 'completed' | 'failed', required
    - `succeeded` integer, required
    - `total` integer, required

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `422` — Validation Error
- `503` — Queue unavailable

## Changes

- **2026-08-22** `d4b03725c5d7` — 2 breaking, 1 warning, 1 info
  - the `ids/items/` request property's minLength was increased from `0` to `1`
  - added the pattern `^[^\x00]+$` to the request property `ids/items/`
  - the `ids/items/` request property's maxLength was set to `255`
  - the `data/results/items/id` response's property pattern `^[^\x00]+$` was added for the status `202`
- **2026-08-19** `92d816f1291b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/band/apis/request-api/changes/api/v1/me/chats/bulk-delete/post.md)

---

[API](https://skmtc.dev/band/apis/request-api.md) · [All operations](https://skmtc.dev/band/apis/request-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/band/request-api/revisions/3cff423845a2/schema)
