doc/user/content/sql/drop-cluster-replica.md
DROP CLUSTER REPLICA deprovisions an existing replica of the specified
unmanaged cluster. To remove
the cluster itself, use the DROP CLUSTER command.
{{< tip >}} When getting started with Materialize, we recommend starting with managed clusters. {{</ tip >}}
DROP CLUSTER REPLICA [IF EXISTS] <cluster_name>.<replica_name>;
| Syntax element | Description |
|---|---|
| IF EXISTS | Optional. If specified, do not return an error if the specified cluster replica does not exist. |
<cluster_name> | The cluster you want to remove a replica from. For available clusters, see SHOW CLUSTERS. |
<replica_name> | The cluster replica you want to drop. For available cluster replicas, see SHOW CLUSTER REPLICAS. |
SHOW CLUSTER REPLICAS WHERE cluster = 'auction_house';
cluster | replica
---------------+---------
auction_house | bigger
DROP CLUSTER REPLICA auction_house.bigger;
The privileges required to execute this statement are:
{{% include-headless "/headless/sql-command-privileges/drop-cluster-replica" %}}