Skip to content

Delete Account

DELETE
/api/v1/auth/me
curl --request DELETE \
--url https://example.com/api/v1/auth/me \
--header 'Content-Type: application/json' \
--data '{ "current_password": "example" }'

Delete the current user’s account and all associated data (S4).

Requires current_password confirmation (M-3). The user row itself is soft-deleted rather than removed, so audit_logs and user_invites (both plain FKs to users.id) are never touched. See delete_user_account() in auth_service.py for the full FK-safe deletion order.

Media typeapplication/json
DeleteAccountRequest
object
current_password
required
Current Password
string
<= 1024 characters

Example generated

{
"current_password": "example"
}

Successful Response

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}