Delete a user
Enterprise Only
This endpoint is only available in the Enterprise package and requires the authenticated user to be a Super Admin.
You cannot delete your own account.
Method: DELETE
URL: https://example.com/<MIXPOST_CORE_PATH>/api/panel/users/{userId}
Authorization: Bearer <token>
Response:
- 200
- 401
- 403
- 404
{
"success": true
}
If attempting to delete your own account:
{
"success": false,
"message": "You cannot delete yourself."
}
{
"message": "Unauthenticated."
}
{
"message": "Access forbidden."
}
{
"message": "User not found."
}