Auth API reference

Auth API · Consumer-Admin

delete/{app_slug}/v1/admin/users/{user_id}Auth

Permanently delete an end-user

Removes the account, its sessions, contacts, and tenant memberships. Audit rows are preserved, and the deletion itself is audited as `auth.account.deleted` with `via: consumer_admin` and the caller as actor. Fires `user.deleted` with `via: "consumer_admin"`.

Path parameters

app_slug*string

Slug of the app.

user_id*string

Id of the user.

Response · 204

End-user deleted.

Example

Request

DELETE https://api.auth.productcraft.co/{app_slug}/v1/admin/users/{user_id}
Authorization: Bearer YOUR_TOKEN