# Delete Account

`DELETE https://api.torbox.app/v1/api/user/deleteme`

- Operation ID: `delete_account`
- Group: User
- Auth: API key, `Authorization: Bearer <api key>` (Sign in with TorBox gives the same key)

### Overview

Permanently deletes the user's TorBox account. This cannot be undone.

Because of how dangerous this action is, it needs two things on top of the API key: the user's session token from the website, and a confirmation code, which is sent to the user's email by the Get Confirmation Code endpoint.

### Authorization

Requires an API key using the Authorization Bearer Header, as well as the session token and the confirmation code in the body.

## Request body (`application/json`)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `session_token` | string | yes | The user's session token from the website. It must belong to the same account as the API key. |
| `confirmation_code` | integer | yes | The confirmation code that was sent to the user's email by the Get Confirmation Code endpoint. |

## Responses

- `200` Successful Response
- `400` Bad Request
- `401` Unauthorized
- `403` Forbidden
- `404` Not Found
- `410` Gone
- `422` Validation Error
- `429` Too Many Requests
- `500` Internal Server Error
- `503` Service Unavailable
