Deletes your account. You leave every workspace you belong to, every session is signed out, and you can't sign in again. The email address is freed, so you can sign up with it again later as a new account.
Note
Requires a session JWT — a dashboard session or an stx login token. API keys are rejected with 401. Any plan.
Warning
This can't be undone. If you are the only owner of a workspace, transfer ownership or delete the workspace first — otherwise the request returns 409 owns_workspaces.
What happens:
•
Your profile is anonymised: the name becomes Deleted user, the email is replaced with a reserved placeholder, the password stops working, and your avatar and GitHub link are removed. Your uploaded avatar image is deleted.
•
Your workspace memberships, sessions (browser and stx CLI), pending CLI sign-in requests, and email-verification and password-reset links are deleted.
•
Each workspace you leave gets an org.member.account_deletedaudit log entry.
•
Content you wrote in a workspace — chat history, reviews, approvals — stays there, attributed to Deleted user.
Request Body
NameDescription
confirmEmail:stringbodyRequired
Your account's email address, to confirm. Compared ignoring case and surrounding whitespace.
Response — 200 OK
Any request made afterwards with one of your tokens gets 401 session_revoked.
Error Responses
400 Bad Request
confirmation_mismatch — confirmEmail is not your account's email:
json
{
"error": {
"code": "confirmation_mismatch",
"message": "Type your account email address to confirm.",