---
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://marketcrew.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://marketcrew.ai/api/admin/users/{user_id}`
- Auth: HTTP bearer

Delete user and all associated data (ADMIN only)

This is a destructive operation that will:
1. Delete user from Supabase Auth
2. Delete all user data from database (cascades automatically via foreign keys)

The following will be deleted automatically via CASCADE:
- user profile (users table)
- portfolios and positions
- watchlists
- smart alerts subscriptions
- personal alerts subscriptions
- trades
- chat threads and messages
- feedback
- custom content (if owned)

## Path parameters

- `user_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/marketcrew/apis/cappilot.md) · [All operations](https://skmtc.dev/marketcrew/apis/cappilot/llms.txt) · [OpenAPI document](https://skmtc.dev/marketcrew/apis/cappilot/revisions/7036e9c74d40?raw)
