Completes the self-service account-deletion flow. Verifies the one-time code sent by the Request Account Deletion endpoint and, on a match, permanently deletes the authenticated user’s account.Requires the user’s own access token; a service key is refused (403 auth/user-token-required) — from your backend, use Delete User. The cascade is identical to the service-key Delete User endpoint: reactions, files, follows, connections, collections, the user’s own report filings (a report others also filed stays open, one reporter fewer), notifications, embeddings, and the user’s drafts (with everything attached to them) are removed, while the user’s published entities and comments are preserved as hollow shells (their userId, content, attachments, mentions and metadata cleared, and an entity’s keywords and location too; comments are marked deleted) to keep threads intact. The user’s chat messages are deleted the way a user deleting their own message deletes it (content, GIF, mentions and metadata cleared, userDeletedAt set); each stays in its conversation as deleted. Mentions of the user in other entities, comments and chat messages keep their text, but their id and foreignId become null. Open reports on the user’s content are closed (status: "auto-closed", actionTaken: "Its author's account was deleted.") and kept as history.
Deletion is immediate and irreversible. There is no grace period and no
recovery once this endpoint returns 204.
Body Parameters
string
required
The one-time confirmation code from the deletion email. Must match the most recently issued code exactly.
Response
Returns 204 No Content on success. The user and their session tokens no longer exist after this call.
Error Codes
Code
Status
Description
auth/invalid-or-expired-code
400
The code does not match, was never issued, or has expired (10-minute TTL).
auth/user-not-found
404
The authenticated user no longer exists.
user/delete-failed
404
The user could not be deleted (not found or already deleted).
auth/unsupported-param
400
The request sent userId, in the body or the query. These endpoints always act as the signed-in user: "`userId` isn't accepted here: these endpoints always act as the signed-in user.", with param: "userId".
auth/user-token-required
403
A service key called this endpoint, with or without actingUserId: "This endpoint needs the user's own access token; a service key can't use it."
auth/acting-user-not-allowed
400
A user token, or a request with no credentials, sent actingUserId: "actingUserId is only accepted with a service key. A user's own token always acts as that user." A user token always acts as its own user.
The confirmation code is single-use — it is consumed once deletion succeeds,
so it cannot be replayed. If deletion fails with a server error, the code is
left in place so you can retry until it expires (10-minute TTL).