[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-25。"],[],[],null,["# Delete instances\n\nThis page describes how to delete instances in Memorystore for Valkey.\n\nDelete an instance\n------------------\n\nYou can delete instances by using the Google Cloud console or the\n[Google Cloud CLI](/sdk/gcloud). \n\n### Console\n\n1. In the Google Cloud console, go to the **Memorystore for Valkey** page.\n\n [Memorystore for Valkey](https://console.cloud.google.com/memorystore/valkey/instances?)\n2. Click the instance that you want to delete.\n\n3. **Optional**. If the instance that you want to delete is a secondary\n instance, then do the following:\n\n 1. Click the expander arrow next to the primary instance that's the parent of the secondary instance.\n 2. Click the link of the secondary instance.\n4. Click **Delete**.\n\n5. In the dialog, enter the instance ID, and then click **Delete**.\n\n### gcloud\n\nTo delete an instance, use the [`gcloud memorystore instances delete`](/sdk/gcloud/reference/memorystore/instances/delete) command. \n\n```\ngcloud memorystore instances delete INSTANCE_ID \\\n--project=PROJECT_ID \\\n--location=REGION_ID\n```\n\nMake the following replacements:\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e: the ID of the instance that you want to delete\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: your project ID\n- \u003cvar translate=\"no\"\u003eREGION_ID\u003c/var\u003e: the region where your instance is located\n\nFor example: \n\n```\ngcloud memorystore instances delete my-instance \\\n--project=my-project \\\n--location=us-central1\n```"]]