> ## 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`.

**id** `string` *required*

Connection ID.

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

```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."
}
```


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