Delete User
DELETE
/api/users/{user_id}
Delete user (superuser only).
Tombstones the critical-DB shadow row BEFORE deleting the main row — this ordering is deliberate: a failure at the tombstone step leaves a live main user + a live critical row (safe, retryable), whereas deleting the main row first would orphan the critical row with no way back to the identity that owns it. Refuses (409) if the user has a live subscription — deleting an account still being billed is a billing footgun, not a routine admin action.
Authorizations
Parameters
Path Parameters
user_id
required
string format: uuid
Responses
200
Successful Response
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string