---
title: "Schedule deletion of the authenticated user's account"
method: PUT
path: "/api/v3/user/deletion"
tags: ["Users"]
---

# Schedule deletion of the authenticated user's account

`PUT /api/v3/user/deletion`

## Request

- Base URL: `https://codemagic.io`
- URL: `https://codemagic.io/api/v3/user/deletion`
- Auth: API key in header `x-auth-token`
- TypeScript: <https://skmtc.dev/codemagic/apis/codemagic-api/docs/api/v3/user/deletion/put.ts> (a function with typed inputs; its response is checked against the schema)

The account and its personal team are deleted 14 days later, unless the deletion is canceled. When a deletion is already scheduled, its date is returned and nothing changes.

## Response `200`

Request fulfilled, document follows

- UserDeletionNoPagination
  - `data` UserDeletion, required
    - `scheduled_at` string, date-time, required: When the account and its personal team will be deleted

## Other responses

- `401`: Authentication is missing or invalid
- `409`: A managed team has an ongoing subscription, or the user is its only admin
- `429`: The rate limit has been exceeded

---

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