Delete the caller's account

1 min readEdit this page
DELETE
/v1/account

Rust-first account deletion: destroys every credential under the user (API keys, OAuth tokens/clients, BYOK keys), archives all owned namespaces, and tombstones the IdP subject so the account cannot be re-provisioned. Irreversible; the caller's own session is revoked.

Requires the user:write scope.

Authorization

x-api-key<token>

Anthropic-style API key header.

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/account"
{}
{  "error": {    "code": "string",    "message": "string"  }}
{  "error": {    "code": "string",    "message": "string"  }}
{  "error": {    "code": "string",    "message": "string"  }}

How is this guide?