> ## Documentation Index
> Fetch the complete documentation index at: https://risingwavelabs-wyx-add-timestamp-dedicated-page.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# DROP CONNECTION

> Use the `DROP CONNECTION` command to remove a connection.

Before you can drop a connection, you must remove all its dependent sources and sinks.

## Syntax

```sql theme={null}
DROP CONNECTION [ IF EXISTS ] connection_name;
```

## Parameters

| Parameter or clause | Description                               |
| :------------------ | :---------------------------------------- |
| *connection\_name*  | The name of the connection to be removed. |

## Examples

This statement removes the connection `c1`.

```sql theme={null}
DROP CONNECTION c1;
```

## See also

<CardGroup>
  <Card title="CREATE CONNECTION" icon="plug" iconType="solid" href="/sql/commands/sql-create-connection">
    Create a connection
  </Card>
</CardGroup>
