---
title: "Delete your account and its data; every key stops working at once. With a session, one call. With your API key (x-api-key), two: the first answers 202 with a confirm token (and the paid drives not run yet that the deletion cancels and refunds), the same call with {token} within 5 minutes deletes. GET /api/me/delete says beforehand what it cancels and refunds"
method: POST
path: "/api/auth/delete-user"
tags: ["Accounts"]
---

# Delete your account and its data; every key stops working at once. With a session, one call. With your API key (x-api-key), two: the first answers 202 with a confirm token (and the paid drives not run yet that the deletion cancels and refunds), the same call with {token} within 5 minutes deletes. GET /api/me/delete says beforehand what it cancels and refunds

`POST /api/auth/delete-user`

## Request

- Base URL: `https://agentdrives.com`
- URL: `https://agentdrives.com/api/auth/delete-user`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Request body

- object
  - `token` string: With an API key: the confirm token the first call answered

## Response `200`

Deleted: what went, the paid drives not run yet that were cancelled and refunded, what stays

- object
  - `success` boolean
  - `deleted` boolean
  - `gone` string
  - `refunds` object[]
    - `order` string
    - `product` string
    - `domain` string
    - `amount_cents` integer
    - `refund` 'made' | 'by_hand'
  - `kept` string
  - `next` string

## Other responses

- `202`: With an API key: send the same call with this token to delete
- `400`: Error as problem details (RFC 9457) with a machine-readable `error` and a `fix` that says what to do next
- `401`: Error as problem details (RFC 9457) with a machine-readable `error` and a `fix` that says what to do next

---

[API](https://skmtc.dev/agentdrives/apis/agentdrives-api.md) · [All operations](https://skmtc.dev/agentdrives/apis/agentdrives-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentdrives/apis/agentdrives-api/revisions/94dcaabff4b2?raw)
