# Remove agent from team

**DELETE** `/teams/{id}/agents/{userId}`

Removes a user from the team.

Authentication: bearerAuth
Required scopes: `team:remove_user`
Allowed roles: `owner`, `admin`
Authorization: Remove an agent from a team.

## Parameters

- `id` (path string, required)
- `userId` (path string, required)

## Responses

- `204`: Agent removed
- `default`: Error
