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

# Remove a user from a client company

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

## Request

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

Remove a user's membership from one of the agency's client companies.
This revokes the user's access to the company.

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

## Response `204`

User successfully removed from the company

## Other responses

- `400`: Cannot remove the user (e.g. user is the company owner)

---

[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)
