---
title: "Disconnect from an agency"
method: DELETE
path: "/agency-connections/{agencyId}"
tags: ["agency-connections"]
---

# Disconnect from an agency

`DELETE /agency-connections/{agencyId}`

## Request

- Base URL: `https://api.bokio.se/v1`
- URL: `https://api.bokio.se/v1/agency-connections/{agencyId}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `/authorize`
    - Client credentials
    - Token URL: `/token` scopes: `agency-connections:write`
  - HTTP bearer

Removes the connection and its agency membership. Agency data is not deleted.

**Scope:** `agency-connections:write`

## Response `204`

Agency connection deleted

## Other responses

- `404`: Agency connection not found

---

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