Delete Account
DELETE/api/v1/auth/accounts/:username
Delete an account (admin only).
Refused when the caller targets their own account, when the account holds the system admin role and no other usable admin-role account would remain (bootstrap admin and break-glass count when they can sign in), or when the store refuses a recovery credential.
Request
Responses
- 204
- 401
- 403
- 409
- 422
- default
Successful Response
No valid session: the credentials are missing, invalid or expired, or the account behind them is disabled or blocked
self_delete: an account cannot delete itself
last_admin: deleting this account would leave no usable system admin
Validation Error
Problem details (RFC 9457)