Delete the caller's workspace
Delete the caller’s own organization and cascade through its local cleanup + Clerk mirror after a member-consistency check. Requires a fresh re-auth challenge minted in the last 5 minutes via POST /organizations/:id/reauth-challenge, replayed as the X-Reauth-Challenge header — this is the step-up gate for the highest-blast-radius tenant-admin self-service verb. Body must be { confirm: "DELETE" }. Returns 403 if the id is not the caller’s own organization and 401 if the challenge header is missing, stale, or wrong. Owner-only.
Authorizations
Dashboard JWT token from Clerk
Headers
Sandbox opt-in for Clerk-session-authenticated requests. Set to true to route the call through the test-mode pipeline: no real provider delivery, no credits deducted, response meta.test_mode: true. Ignored for live API keys (dv_live_sk_*) — server-to-server clients must use a test-prefixed key (dv_test_sk_*) to exercise sandbox. Test-prefixed keys unconditionally enable sandbox regardless of this header.
true, false Path Parameters
The organization id. Must equal the caller's own organization.
Body
Literal confirmation guard — must be the string "DELETE".
DELETE