---
title: "Delete the signed-in account and erase its personal data"
method: POST
path: "/api/account/delete"
tags: ["account"]
---

# Delete the signed-in account and erase its personal data

`POST /api/account/delete`

## Request

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

Revoke everything this account issued, then erase the person from it.

No 404 branch, for ``revoke-all``'s reason: the subject is the caller's
own account, which the session already proved exists. No idempotent
repeat either, and that is the difference — the second press arrives
without a session to authenticate, so it is a 401 rather than a set of
zeros.

## Response `200`

Successful Response

- AccountDeletionView: Everything a deletion ended, counted per kind. Counts rather than a bare acknowledgement because they are the only confirmation the person will ever get: the session this answered on is already dead, so there is no page left to come back and check.
  - `revoked_grants` integer, required
  - `revoked_families` integer, required
  - `revoked_proxy_sessions` integer, required
  - `closed_streams` integer, required
  - `web_sessions_revoked` integer, required
  - `billing_cancellation` 'none' | 'pending' | 'canceled'
  - `github_uninstalls_failed` integer
  - `nodes_revoked` integer
  - `identity_erasure` 'not_applicable' | 'pending' | 'erased'
  - `marketing_contact` 'not_applicable' | 'pending' | 'forgotten'
  - `managed_machine` 'none' | 'pending'

## Other responses

- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/nerdit/apis/nerdit-cloud-web.md) · [All operations](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/llms.txt) · [OpenAPI document](https://skmtc.dev/nerdit/apis/nerdit-cloud-web/revisions/06e3b44b58be?raw)
