Admin - Users
Delete User
Delete a user account
DELETE
Authentication
This endpoint requires admin authentication and theusers:write permission.
Path Parameters
User UUID
Restrictions
- Cannot delete your own account
- Cannot delete a user that owns servers
- All servers must be deleted or transferred to another user first
Response
Error Responses
- 400 Bad Request: User ID is required
- 400 Bad Request: Cannot delete your own account
- 400 Bad Request: User owns servers (includes server count)
- 404 Not Found: User not found
Pre-Deletion Checks
- Verifies the user exists
- Checks if the user is the current admin (prevents self-deletion)
- Counts servers owned by the user
- Blocks deletion if user owns any servers
What Gets Deleted
- User account record
- Associated authentication accounts
- User sessions
- API keys
- Other user-specific data
Notes
- User deletion is permanent and cannot be undone
- To delete a user that owns servers, first transfer or delete those servers
- Subuser permissions and access to other users’ servers are removed