This page describes how to delete instances in Memorystore for Valkey.
Delete an instance
You can delete instances by using the Google Cloud console or the Google Cloud CLI .
Console
-
In the Google Cloud console, go to the Memorystore for Valkeypage.
-
Click the instance that you want to delete.
-
Optional. If the instance that you want to delete is a secondary instance, then do the following:
- Click the expander arrow next to the primary instance that's the parent of the secondary instance.
- Click the link of the secondary instance.
-
Click Delete.
-
In the dialog, enter the instance ID, and then click Delete.
gcloud
To delete an instance, use the gcloud memorystore instances delete
command.
gcloud memorystore instances delete INSTANCE_ID \ --project= PROJECT_ID \ --location= REGION_ID
Make the following replacements:
- INSTANCE_ID : the ID of the instance that you want to delete
- PROJECT_ID : your project ID
- REGION_ID : the region where your instance is located
For example:
gcloud memorystore instances delete my-instance \ --project=my-project \ --location=us-central1

