---
title: "Delete Account"
method: POST
path: "/api/billing/delete-account"
tags: ["Billing"]
---

# Delete Account

`POST /api/billing/delete-account`

## Request

- Base URL: `https://api.soeru.biz` (the document declares no server; this is the origin it was published from)
- URL: `https://api.soeru.biz/api/billing/delete-account`
- Auth: none declared. Required headers: `authorization`

Permanently delete a user's account and all associated data.

Only available for free plan users. Paid users must cancel first.
Requires confirmation string "DELETE" to prevent accidental deletion.

Deletes in order:
1. Stripe customer (if exists) — removes payment methods & invoices
2. Messages, usage_logs, order_history (shop-linked data)
3. Shop settings, soeru_link data
4. Shops
5. Subscription record
6. User profile
7. Supabase Auth user

## Headers

- `authorization` string, required: Bearer <token>

## Request body

- DeleteAccountRequest: Request body for account deletion.
  - `confirmation` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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