# Remove User From Workspace

Source: https://agenta.ai/docs/reference/api/remove-user-from-workspace

`DELETE /workspaces/{workspace_id}/users`

Base URL: `https://us.cloud.agenta.ai/api` (US cloud), `https://eu.cloud.agenta.ai/api` (EU cloud) or `$AGENTA_HOST/api` (self-hosted). Authentication: `Authorization: ApiKey YOUR_API_KEY`.

Remove a user from a workspace.

Args:
    email (str): The email address of the user to be removed
    workspace_id (str): The ID of the workspace.

## Parameters

- `workspace_id` (in path, string, required)
- `email` (in query, string, required)

## Response schemas

### 200: Successful Response

- any

### 422: Validation Error

- `detail` (array of object)
  - `loc` (array of string | integer, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (Context)
