This page describes how to delete clusters in Memorystore for Redis Cluster.

## Delete a cluster

You can delete clusters by using the Google Cloud console or the
[Google Cloud CLI](https://docs.cloud.google.com/sdk/gcloud).

> [!CAUTION]
> **Important** : If you delete a cluster and create another cluster with the same name, then Memorystore for Redis Cluster assigns different IP addresses to the cluster. If you hardcode the IP addresses from the cluster that you delete into your client applications, then the clients can't connect to the cluster. You must update the IP addresses to point to the cluster's new [discovery endpoints](https://docs.cloud.google.com/memorystore/docs/cluster/cluster-node-specification#discovery_endpoint).

### Console

1. In the Google Cloud console, go to the **Memorystore for Redis Cluster** page.

   [Memorystore for Redis Cluster](https://console.cloud.google.com/memorystore/redis/clusters)
2. Click the cluster that you want to delete.

3. **Optional**. If the cluster that you want to delete is a secondary
   cluster, then do the following:

   1. Click the expander arrow next to the primary cluster that's the parent of the secondary cluster.
   2. Click the link of the secondary cluster.
4. Click **Delete**.

5. In the dialog, enter the cluster ID, and then click **Delete**.

### gcloud

To delete a cluster, use the [`gcloud redis clusters delete`](https://docs.cloud.google.com/sdk/gcloud/reference/redis/clusters/delete) command.

```
gcloud redis clusters delete CLUSTER_ID \
--project=PROJECT_ID \
--region=REGION_ID
```

Make the following replacements:

- <var translate="no">CLUSTER_ID</var>: the ID of the cluster that you want to delete
- <var translate="no">PROJECT_ID</var>: your project ID
- <var translate="no">REGION_ID</var>: the region where your cluster is located

For example:

```
gcloud redis clusters delete my-cluster \
--project=my-project \
--region=us-central1
```