---
title: "Bulk Delete Documents"
method: POST
path: "/api/folders/documents/bulk/delete"
tags: ["domains"]
---

# Bulk Delete Documents

`POST /api/folders/documents/bulk/delete`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/folders/documents/bulk/delete`
- Auth: none declared

Soft-delete (recycle bin) one or more documents (TOS-1488).

Personal docs (library_id IS NULL): only the owner may delete (enforced by
``_load_authorized_docs``'s visibility filter). Shared docs: caller needs
edit+ on the doc's folder. Segments stay attached until purge.

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- BulkDocumentIdsRequest
  - `document_ids` string[], required

## Response `200`

Successful Response

- BulkDeleteResponse
  - `deleted` integer, required
  - `errors` BulkErrorItem[], required
    - `id` string, uuid, required
    - `reason` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/5387b4ded614?raw)
