---
title: "Delete User"
method: DELETE
path: "/api/admin/users/{user_id}"
tags: ["admin"]
---

# Delete User

`DELETE /api/admin/users/{user_id}`

## Request

- Base URL: `https://api.equity-rank.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.equity-rank.com/api/admin/users/{user_id}`
- Auth: HTTP bearer

Permanently delete a Supabase auth user.
If the user has an active Stripe subscription:
  - Calculates a prorated refund for unused days in the current billing period.
  - Issues the refund against the latest paid invoice charge.
  - Cancels the subscription immediately.
  - Updates subscriptions.status to 'canceled'.

## Path parameters

- `user_id` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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