---
title: "Cancel a scheduled deletion"
method: POST
path: "/v1/account/deletion/cancel"
tags: ["account"]
---

# Cancel a scheduled deletion

`POST /v1/account/deletion/cancel`

## Request

- Base URL: `https://botmail.pro`
- URL: `https://botmail.pro/v1/account/deletion/cancel`
- Auth: API key in cookie `bm_session`

Signed-in human only. Restores the prior account status and the API
keys and OAuth tokens the deletion revoked (keys revoked earlier stay
revoked). 404 not_scheduled, 409 deletion_in_progress.

## Response `200`

Cancelled.

- object
  - `status` 'cancelled', required
  - `hint` string, required

## Other responses

- `401`: Missing or invalid credentials (`unauthorized`, `invalid_token`).
- `403`: The credential can't do this (`forbidden`, `csrf`, `account_inactive`, …). Missing scopes are listed in `details.required_scope`; pending keys get a hint to wait for the claim.
- `404`: Not found or not accessible with this credential.
- `409`: Conflicts with current state.

---

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