# Unassign Role From User

Source: https://agenta.ai/docs/reference/api/unassign-role-from-user

`DELETE /workspaces/{workspace_id}/roles`

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 role assignment from a user in a workspace.

Args:
    email (str): The email of the user.
    organization_id (str): The ID of the organization.
    role (str): The role to remove.
    workspace_id (str): The ID of the workspace.

## Parameters

- `workspace_id` (in path, string, required)
- `email` (in query, string, required)
- `organization_id` (in query, string, required)
- `role` (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)
