---
title: "Delete Document"
method: DELETE
path: "/api/folders/documents/{document_id}"
tags: ["domains"]
---

# Delete Document

`DELETE /api/folders/documents/{document_id}`

## 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/{document_id}`
- Auth: none declared

Soft-delete a document into the recycle bin (TOS-1488).

Personal docs (library_id IS NULL): only the owner may delete.
Shared docs: caller needs edit+ on the doc's folder. Segments stay
attached to the document row until it is purged (``POST .../purge``,
admin rung). Restore via ``POST .../restore`` (edit+ rung).

## Path parameters

- `document_id` string, uuid, required

## Headers

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

## Response `200`

Successful Response

- OkResponse
  - `ok` boolean

## 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/ce2c2ce318b1?raw)
