DELETE /api/users/{user_id}
Permanently removes a user account and all associated data (tasks, refresh tokens) from the system. This endpoint is restricted to administrators.
Restriction: Administrators cannot delete other administrator accounts. Attempting to delete an admin user returns 403.
Authentication
Requires a valid Bearer access token. The authenticated user must have the admin role.Path Parameters
The ID of the user to delete.
Response
true when the deletion succeeds.Human-readable confirmation that the user was deleted.
Errors
| Status | Description |
|---|---|
401 | Missing or invalid access token. |
403 | The authenticated user is not an admin, or the target user is an administrator. |
404 | No user exists with the given user_id. |