# Delete connection

Tool: `veryfront__delete_connection`

Delete a connection.

## Arguments

| Name                | Type                  | Required | Description                                                                                                                                                                                                                                                                                                                        |
| ------------------- | --------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `project_reference` | string · min length 1 |          | Project ID or slug. A missing or inaccessible project, including a denied scope-dependent project access check, returns not\_found.                                                                                                                                                                                                |
| `name`              | string · min length 1 | Yes      | Integration name, for example github or slack.                                                                                                                                                                                                                                                                                     |
| `connection_id`     | string · uuid         | Yes      | Connection ID from get\_connection\_status.                                                                                                                                                                                                                                                                                        |
| `scope`             | string                | 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. One of `user`, `project`. |
| `confirm`           | boolean               | Yes      | Must be true to delete the connection.                                                                                                                                                                                                                                                                                             |

## Responses

| Status | Description                                           |
| ------ | ----------------------------------------------------- |
| 200    | The tool ran; its output is result.structuredContent. |

## Call it

```bash
curl -X POST -N "https://api.veryfront.com/mcp" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Accept: application/json, text/event-stream" \
  -H "Content-Type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__delete_connection",
    "arguments": {
      "name": "string",
      "connection_id": "00000000-0000-0000-0000-000000000000",
      "scope": "user",
      "confirm": false
    }
  }
}'
```

## Example response

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "{\"ok\":true}"
      }
    ],
    "structuredContent": {
      "ok": true
    }
  }
}
```
