# Delete connection

```http
DELETE /projects/{project_reference}/integrations/{name}/connections/{connection_id}
```

Delete a connection.

## Parameters

| Name                | In    | Required | Description                                                                                                                                                                                                                                                                                              |
| ------------------- | ----- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | path  | Yes      |                                                                                                                                                                                                                                                                                                          |
| `name`              | path  | Yes      |                                                                                                                                                                                                                                                                                                          |
| `connection_id`     | path  | Yes      |                                                                                                                                                                                                                                                                                                          |
| `scope`             | query | Yes      | Connection owner. Project scope needs the editor role for project.integrations.connect; user scope needs viewer access to the project. API keys also need the integrations write scope. Verified user-session or API-key credentials are required; MCP OAuth grants and runtime credentials are refused. |

## Responses

| Status | Description                                                                                                |
| ------ | ---------------------------------------------------------------------------------------------------------- |
| 200    | Stored credentials deleted; ok is always true.                                                             |
| 400    | Bad request                                                                                                |
| 401    | Unauthorized                                                                                               |
| 404    | Project or connection not found, including inaccessible projects or denied scope-dependent project access. |
| 429    | Rate limit exceeded                                                                                        |
| 500    | Server error                                                                                               |
| 503    | Service unavailable                                                                                        |
