> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opsmatic.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Connection

> Delete a connection and stop monitoring it

## Delete Connection

Permanently removes a connection and stops all monitoring for it.

```
DELETE https://api.opsmatic.com/v1/connections/{id}
```

Requires an API key with `connections: delete` and access to the connection.

### Path Parameters

<ParamField path="id" type="string" required>
  The connection ID to delete, e.g. `conn_abc123`.
</ParamField>

### Headers

<ParamField header="Authorization" type="string" required>
  `Bearer ops_your_api_key`
</ParamField>

<Warning>
  This is irreversible. Historical data is subject to your plan's [retention policy](/analytics/availability-monitoring) and any OpenClaw ingest key bound to the connection stops working.
</Warning>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.opsmatic.com/v1/connections/conn_abc123 \
    -H "Authorization: Bearer ops_your_api_key"
  ```

  ```javascript Node theme={null}
  await fetch("https://api.opsmatic.com/v1/connections/conn_abc123", {
    method: "DELETE",
    headers: { Authorization: "Bearer ops_your_api_key" },
  });
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  { "message": "Connection deleted successfully" }
  ```

  ```json 403 theme={null}
  { "error": "You do not have access to this connection" }
  ```

  ```json 404 theme={null}
  { "error": "Connection not found" }
  ```
</ResponseExample>
