Delete Account
DELETE
/api/v1/auth/me
const url = 'https://example.com/api/v1/auth/me';const options = { method: 'DELETE', headers: {'Content-Type': 'application/json'}, body: '{"current_password":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DeleteAccountRequest
object
current_password
required
Current Password
string
Example generated
{ "current_password": "example"}Responses
Section titled “Responses”Successful Response
Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}