---
title: "Delete provider connection"
method: DELETE
path: "/api/provider-connections/{sid}"
tags: ["provider_connections"]
---

# Delete provider connection

`DELETE /api/provider-connections/{sid}`

## Request

- Base URL: `https://beta.getsales.io/integrations/v1`
- URL: `https://beta.getsales.io/integrations/v1/api/provider-connections/{sid}`
- Auth: HTTP bearer and API key in header `Team-SID`

Soft-delete a connection: the secret is scrubbed in the same transaction, the executor refuses it at once (connection_not_found), a HubSpot grant is revoked at the portal first. Blocked while a custom tool references it (409 delete_blocked, connection_in_use: repoint or delete the tools). The call history stays. No restore: re-creating mints a new sid.

Contract:
- MCP tool `delete_provider_connection`, registry package `mcp.integrations/provider_connections`, mount `integrations.providers`.
- Operation `delete`, response envelope `delete_simple`.
- Flags: dangerous: the MCP layer gates it behind a preview/commit token, and the effect cannot be undone through this API.

## Path parameters

- `sid` string, required: The in_cn_* sid of the row to delete.

## Response `200`

`delete_simple` success envelope.

- DeleteProviderConnectionResponse
  - `success` true, required
  - `operation` 'delete', required
  - `item` object, required
  - `already_deleted` boolean, required
  - `soft_deleted` boolean, required
  - `retained` string[], required
  - `meta` object, required
    - `trace_id` string, required: UUID v7; same 128-bit value as the X-Trace-Id header.
    - `span_id` string, required: 16 hex chars, root span of this request.
    - `timestamp` string, required: ISO 8601 UTC (Y-m-dTH:i:sZ), response time.
    - `duration_ms` integer, required: Server-side wall clock.
    - `team_sid` string, nullable: The team this call ran in (the token team, or the team_sid override). Null when unauthenticated; absent from pre-2026-08-20 backends.
    - `actor_type` string, nullable: user | agent | api_key | system. Null when unauthenticated; absent from pre-2026-08-20 backends.

## Other responses

- `4XX`: MCP error envelope. `error.code` is one of validation_failed, nothing_to_update, not_found, relation_not_found, invalid_transition, limit_exceeded, payment_required, duplicate_rejected, conflict, delete_blocked, unauthorized, forbidden, rate_limited, not_implemented.
- `5XX`: MCP error envelope with `error.code` internal_error or service_unavailable.

---

[API](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-integrations.md) - [All operations](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-integrations/llms.txt) - [OpenAPI document](https://skmtc.dev/getsales/apis/getsales-public-contract-gs-service-integrations/revisions/2e7105d58335?raw)
