Skip to main content
DELETE
Runs post-org-delete cleanup: converts org-scoped sessions and API keys to personal ownership (nulls organization_id), deletes organization preferences, and cleans up organization secrets. This is an administrative action intended to be called after an organization has been deleted from the auth system.

Path Parameters

string
required
The organization ID to clean up

Headers

string
required
Bearer token. Authorization: Bearer runtm_xxx
string
required
Must match the org_id path parameter

Response

string
The organization ID that was cleaned up
integer
Number of sessions converted from org-scoped to personal
integer
Number of API keys converted from org-scoped to personal
boolean
Whether organization preferences were deleted

Scopes