---
title: "Workos Prepare Account Deletion"
method: POST
path: "/api/py/workos/account-deletions"
tags: ["workos"]
---

# Workos Prepare Account Deletion

`POST /api/py/workos/account-deletions`

## Request

- Base URL: `https://api.getauctor.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getauctor.com/api/py/workos/account-deletions`
- Auth: none declared

## Request body

- PrepareAccountDeletionRequest
  - `user_id` string, required
  - `expected_generation` integer, required

## Response `200`

Successful Response

- PrepareAccountDeletionResponse: ``ready`` is false while calendars are still disconnecting; the caller retries later. ``result`` follows the organizations owners: ``stopped`` when the deletion gates are off (nothing was changed), ``fenced`` when the user's recorded identity is no longer ``deleted`` at ``expected_generation`` (nothing was changed), and ``retryable_failure`` with ``reason='gate_unavailable'`` when the gates could not be evaluated (HTTP 503).
  - `result` 'completed' | 'stopped' | 'fenced' | 'retryable_failure'
  - `reason` 'gate_unavailable', nullable
  - `ready` boolean, required
  - `calendars_pending` integer, required
  - `deleted_grants` integer, required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `422`: Validation Error
- `503`: Service Unavailable

## Changes

- **2026-10-21** `2d4b34404a6f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/getauctor/apis/getauctor-api/changes/api/py/workos/account-deletions/post.md)

---

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