---
title: "Purge Folder"
method: POST
path: "/api/folders/{domain_ref}/purge"
tags: ["domains"]
---

# Purge Folder

`POST /api/folders/{domain_ref}/purge`

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

Permanently delete a binned folder and its tree (TOS-3390). Irreversible.

Acts only on what is already in the recycle bin: the folder must be binned
(``DELETE /{domain_ref}`` first), and so must every folder and object under
it. Deepest folder first, it retracts documents from every Mind, drops
agent databases, removes connections and connectors, purges skills binned
with the folder, then deletes each folder row. Refused with a 409 listing
``blockers`` when anything in the tree is live or something outside still
depends on it. Same authority as delete.

## Path parameters

- `domain_ref` string, required

## Headers

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

## Response `204`

Successful Response

## 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)
