---
title: "Delete User Account"
method: POST
path: "/delete_user_account"
tags: ["users"]
---

# Delete User Account

`POST /delete_user_account`

Delete the caller's account.

Args:
    auth: Authenticated caller.
    service: User service.
    request: Optional feedback and ownership transfers.

Returns:
    Deletion confirmation.

Raises:
    HTTPException: If deletion is blocked or fails.

## Request body

- DeleteAccountRequest — Request for account deletion with optional feedback and ownership transfers. Combines cancellation feedback with team ownership transfers so the entire delete-account flow is a single atomic request. Attributes: reason: Selected cancellation reason (e.g. 'Pricing'). feedback_text: Free-form feedback from the user. ownership_transfers: Mapping of team_id to new_owner_id for teams the user owns that still have other members.
  - `reason` string, nullable
  - `feedback_text` string, nullable
  - `ownership_transfers` object, nullable

## Response `200`

Successful Response

- DeleteUserResponse — Response for user deletion.
  - `status` string, required
  - `message` string, required
  - `code` integer, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-24** `1cffaad2a921` — 1 warning, 1 info
  - removed the optional property `detail` from the response with the `422` status
  - added the required property `error` to the response with the `422` status
- **2026-08-19** `b92f75fd3b61` — 1 breaking, 3 warning, 2 info
  - the request's body type changed from `object` to no type
  - removed the request property `feedback_text`
  - removed the request property `ownership_transfers`
  - removed the request property `reason`
  - …2 more

[Change history](https://skmtc.dev/pioneer/apis/brain-api/changes/delete_user_account/post.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) · [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/1cffaad2a921?raw)
