---
title: "Disconnect connector account"
method: POST
path: "/v1/connector-accounts/{connectorAccountId}/disconnect"
tags: ["Connectors"]
---

# Disconnect connector account

`POST /v1/connector-accounts/{connectorAccountId}/disconnect`

Disconnects a connector account and cleans up all associated connector-managed records.

## Path parameters

- `connectorAccountId` string, typeid, required

## Request body

- object
  - `reason` string

## Response `200`

Connector account disconnected and cleaned up successfully.

- PluginArchConnectorAccountDisconnectResponse
  - `ok` true, required
  - `item` object, required
    - `deletedConfigObjectCount` integer, required
    - `deletedConnectorInstanceCount` integer, required
    - `deletedConnectorMappingCount` integer, required
    - `disconnectedAccountId` string, typeid, required — Den TypeID with 'cac_' prefix and a 26-character base32 suffix.
    - `reason` string, nullable, required

## Other responses

- `400` — The connector account disconnect request was invalid.
- `401` — The caller must be signed in to manage connector accounts.
- `403` — The caller lacks permission to manage connector accounts.
- `404` — The connector account could not be found.

---

[API](https://skmtc.net/openworklabs/apis/den-api.md) · [All operations](https://skmtc.net/openworklabs/apis/den-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openworklabs/den-api/versions/073bc652adfb/schema)
