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

# Delete Warehouse Connection

> Delete a warehouse connection

Deletes a connection and its stored credentials. Delete its syncs first. Requires `warehouse:delete`.

<ParamField path="id" type="string" required>
  Connection ID.
</ParamField>

```bash theme={null}
curl -X DELETE "https://api.sequenzy.com/api/v1/warehouse-connections/wconn_abc123" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "connectionId": "wconn_abc123"
  }
  ```

  ```json 409 theme={null}
  {
    "success": false,
    "code": "connection_in_use",
    "error": "This connection is used by 1 sync. Delete it first."
  }
  ```

  ```json 404 theme={null}
  {
    "success": false,
    "code": "not_found",
    "error": "Warehouse connection not found."
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.