SnozeDevelopers
API referenceDatabases

Permanently delete a reviewed subtree

Requires record write access and the fingerprint from subtree-impact. Revalidates the reviewed records and structure under the hierarchy lock, then permanently deletes the entire subtree atomically through canonical record deletion. A changed fingerprint fails without deleting records. Set requireTrashed=true for Trash-only deletion; every current target must remain archived before any deletion. Omit it for explicitly reviewed active subtree deletion. Send an Idempotency-Key to replay a successful request.

DELETE
/v1/workspaces/{workspaceId}/databases/{databaseId}/records/{recordId}/subtree
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
databaseId*string
recordId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/workspaces/string/databases/string/records/string/subtree" \  -H "Content-Type: application/json" \  -d '{    "fingerprint": "string"  }'
{  "data": {    "id": "string"  }}