Delete instances

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

  1. In the Google Cloud console, go to the Memorystore for Valkey page.

    Memorystore for Valkey

  2. Click the instance that you want to delete.

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

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

  5. 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