> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/open-webui/open-webui/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete User

Deletes a user account and all associated data including chats and group memberships.

## Authentication

Requires admin authentication.

## Path Parameters

<ParamField path="user_id" type="string" required>
  The unique identifier of the user to delete
</ParamField>

## Response

Returns a boolean indicating success.

<ResponseField name="success" type="boolean">
  `true` if user was successfully deleted, error otherwise
</ResponseField>

## Example Request

```bash theme={null}
curl -X DELETE "https://your-domain.com/api/users/user-123" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## Example Response

```json theme={null}
true
```

## Errors

* `403` - Cannot delete yourself
* `403` - Cannot delete the primary admin user (first user created)
* `500` - Error occurred during user deletion

## Notes

* Deletion is permanent and cannot be undone
* Deletes all associated data:
  * User authentication records
  * All user chats
  * Group memberships (removed from all groups)
* Primary admin user (first user created) cannot be deleted for system integrity
* Users cannot delete themselves
* Operation is atomic - if chat deletion fails, user deletion is aborted
