delete_profile
Permanently delete a sub-account and revoke its API keys; archive HITL setups, decline pending requests, remove templates, retire its username, and keep history unlinked. Cannot be undone.
Instructions
Delete a sub-account (profile). Revokes its API keys, archives the HITL setups and declines the pending requests created with its own keys, keeps its history but unlinks it, deletes its message templates, and retires its username for good. The last sub-account cannot be deleted; deleting the primary sub-account makes the oldest remaining one primary (the response names it). In a start_login session: one code first — start_2fa_for_action with action_type profile_delete and targets [this sub-account id]. With an API key alone only an EMPTY sub-account (no API keys, HITL setups or pending requests) can be deleted; anything else answers owner_session_required. archive_default_linked is deliberately not offered here: archiving or cancelling everything linked only by default is an irreversible fan-out, so archive each item explicitly instead. Cannot be undone.
ACCESS: needs a Proof account. Set PROOF_API_KEY and restart this server, or sign in with start_login — a session opens this tool — then call this tool again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile_id | Yes | Profile ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | ||
| project | No | ||
| success | No | Always `true`. The 1.x Go, PHP and Python SDK types carry it as a string, as released; it is typed boolean in the next major. | |
| new_primary | No | Named when the deleted sub-account is (or was) the primary: the OLDEST remaining sub-account takes over, and messages sent without choosing a sub-account carry its name. | |
| was_primary | No | ||
| hitl_archived | No | ||
| hitl_detached | No | ||
| api_keys_revoked | No | ||
| circles_detached | No | ||
| domains_detached | No | ||
| username_retired | No | The username is retired for good — it can never be claimed again, by anyone. | |
| requests_detached | No | ||
| templates_deleted | No | ||
| requests_cancelled | No | ||
| confirmations_denied | No | ||
| authorizations_revoked | No | ||
| verifications_detached | No |