---
title: "Remove a user from the agency"
method: DELETE
path: "/agencies/{agencyId}/users/{userId}"
tags: ["agency-users"]
---

# Remove a user from the agency

`DELETE /agencies/{agencyId}/users/{userId}`

## Request

- Base URL: `https://api.bokio.se/v1`
- URL: `https://api.bokio.se/v1/agencies/{agencyId}/users/{userId}`
- Auth: HTTP bearer

Remove a user's membership from the agency.
This also removes the user from all client companies managed by the agency
(except where the user is the company owner).

**Scope:** `agency-users:write`

## Response `204`

User successfully removed from the agency

## Other responses

- `400`: Cannot remove the user (e.g. cannot remove yourself)

---

[API](https://skmtc.dev/bokio/apis/agency-api.md) - [All operations](https://skmtc.dev/bokio/apis/agency-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bokio/apis/agency-api/revisions/2ec5b299f1d5?raw)
