Skip to Content
iAdvizeDocs

Delete a connector

Removes a connector, as the dashboard does: the agents that use it stop calling it at once, its token and secret header values are erased, and its open alert closes. Deleting it again is a `404`. Records a `connector.disabled` audit entry. Refused while a holdout runs on a site whose live version uses the connector.

DELETE
/api/v1/connectors/{connectorId}

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

A WorkOS org-scoped API key, created from the dashboard's organization settings page. Identifies the tenant every read and write is scoped to. Missing, malformed, unknown, revoked, expired, or non-organization-owned keys all return 401 (no distinction, so the response can't be used to probe which keys or org ids exist).

Path Parameters

connectorId*string

The connector id (prefixed conn_), from the site's connector list or the subject of a connector_unavailable or catalog_empty alert. A connector id that isn't yours, or that was deleted, is a 404.

Response Body

The connector was deleted.

application/json
  1. response
data*
Example Request
curl -X DELETE 'https://example.com/api/v1/connectors/string'
Example Response
{  "data": {    "id": "conn_01kvnwmagvf27rc9cze5rm9e1r",    "deleted": true  }}