/Docs
Search docs or ask a question⌘K
DocsAgent
Changelog
API Reference Delete Account

Delete Account

Delete your Syntext account.

DELETE/v1/auth/accountTry it
Session token

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_deleted audit 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.",
"details": { "traceId": "6f1c2a9e-3b7d-4c11-9a0e-2d5f8b4c7e10" }
}
}

A missing or empty confirmEmail returns 400 validation_error, with the problem in details.issues.

401 Unauthorized

unauthorized for a missing, invalid or expired token (or an API key); session_revoked when the session has been signed out.

404 Not Found

not_found — the account is already deleted.

409 Conflict

owns_workspaces — you are the only owner of one or more live workspaces. details.orgs lists them:

json
{
"error": {
"code": "owns_workspaces",
"message": "Transfer ownership of your workspaces, or delete them, before deleting your account.",
"details": {
"orgs": [
{ "id": "3f9c2a1e-6b4d-4e8a-a1c7-5d2e9f0b7c13", "name": "Acme" }
],
"traceId": "6f1c2a9e-3b7d-4c11-9a0e-2d5f8b4c7e10"
}
}
}

A workspace with another owner doesn't block deletion.

Was this page helpful? Yes No
Request
cURLJavaScriptPythonGoRubyPHPJavaC#cURL
curl -X DELETE https://api.syntext.dev/v1/auth/account \
-H "Authorization: Bearer $SYNTEXT_JWT" \
-H "Content-Type: application/json" \
-d '{ "confirmEmail": "jane@example.com" }'
Responseapplication/json
200OK
{
"data": {
"deleted": true
}
}
Product
Resources
Company
© 2026 SyntextBuilt with Syntext