Erase an account at its member's request
admin_erase_accountInternal staff only. Erases an account at its member's request (a GDPR erasure): deletes the member's WorkOS user, the organization with every project, API key, usage record and its database, its Stripe customer if it has one (Stripe keeps the invoices), and the member's profiles at Customer.io, recording each step, and answers a receipt to paste into the written confirmation. It takes an organization whose only member is the person who asked; it refuses your own organization, a staff one, one with other members, an unclaimed or provisioning one, and one on a paid plan or an Enterprise contract. A processor whose keys this deployment lacks is left to do by hand, and the answer names what to submit. Called again with the id of an organization it erased, it runs again the steps that failed, or answers the receipt again. Never pass the person's address. Call it without confirm first, put the sentence it answers with to the person, and call again with confirm: true only when they agree.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"organization": "<organization>",
"reference": "<reference>",
"confirm": "<confirm>"
},
"name": "admin_erase_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | true only once the person has agreed to the sentence the unconfirmed call answered with. | |
| reference | Yes | The request's reference, at most 200 characters: a ticket id or "GDPR request 2026-10-23". Never the person's address or name, which the request log would keep. | |
| organization | Yes | The organization's id or slug, as admin_find_organization returned it. Once it is erased, its id alone finds the erasure. |