# Delete a connection ```http DELETE https://api.onehazel.com/onehazel-api/connections/{connectionId} ``` Rejected with 409 while an active workflow uses the connection. Section: [Connections](./) Operation id: `deleteConnectionsByConnectionId` ## Authentication Operator API key (`oh_live_...`) or a signed-in session token, as a bearer token. ## Parameters | Name | In | Required | Description | |---|---|---|---| | `connectionId` | path | yes | | ## Responses `200` `{ "success": true, "data": ... }` Errors return `{ "success": false, "error": { "code": "...", "message": "..." } }` with a 4xx or 5xx status. ## Example ```bash curl -X DELETE "https://api.onehazel.com/onehazel-api/connections/{connectionId}" \ -H "Authorization: Bearer oh_live_YOUR_API_KEY" ``` Machine-readable: [openapi.yaml](/openapi.yaml), [openapi.json](/openapi.json).