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

# Delete User Account

`POST /delete_user_account`

Delete user account and all associated data (HTTP wrapper).

Accepts optional cancellation feedback and ownership transfers.
When ``ownership_transfers`` is provided the backend applies them
server-side using the admin client before proceeding with deletion,
avoiding RLS permission issues.

Args:
    request: Optional feedback + ownership transfers.
    auth: Authenticated user context.

Returns:
    DeleteUserResponse with status and message.

## 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

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/31dfe831e079/schema)
