---
title: "Delete Account"
method: POST
path: "/api/auth/delete-account"
tags: ["auth"]
---

# Delete Account

`POST /api/auth/delete-account`

## Request

- Base URL: `https://api.sambodh-ias.in` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sambodh-ias.in/api/auth/delete-account`
- Auth: none declared

Permanently delete the authenticated user's account and all their data.

Password accounts must re-enter their password; Google-only accounts (no
password) confirm explicitly. The single DELETE cascades across every v2.*
table that references the user (migration 055) — assessments, attempts,
memory, coverage, payments, sessions, etc. — while staff/audit rows
(email_campaigns.sent_by, prompt_versions.edited_by) are anonymised, not
removed. Deleting the row invalidates every token the user holds
(get_current_user and /refresh both reload the user and 401 once it's gone)
and cascade-closes their sessions, so no separate revocation is needed.

## Headers

- `authorization` string, nullable

## Request body

- DeleteAccountRequest
  - `password` string, nullable
  - `confirm` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2.md) · [All operations](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/llms.txt) · [OpenAPI document](https://skmtc.dev/sambodh-ias/apis/sambodhias-v2/revisions/258843d1f806?raw)
