Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[],[],null,["# Delete clusters\n\nThis page describes how to delete clusters in Memorystore for Redis Cluster.\n\nDelete a cluster\n----------------\n\nYou can delete clusters by using the Google Cloud console or the [Google Cloud CLI](/sdk/gcloud). \n\n### Console\n\n1. In the Google Cloud console, go to the **Memorystore for Redis Cluster** page.\n\n [Memorystore for Redis Cluster](https://console.cloud.google.com/memorystore/redis/clusters?)\n2. Click the cluster that you want to delete.\n\n3. **Optional**. If the cluster that you want to delete is a secondary\n cluster, then do the following:\n\n 1. Click the expander arrow next to the primary cluster that's the parent of the secondary cluster.\n 2. Click the link of the secondary cluster.\n4. Click **Delete**.\n\n5. In the dialog, enter the cluster ID, and then click **Delete**.\n\n### gcloud\n\nTo delete a cluster, use the [`gcloud redis clusters delete`](/sdk/gcloud/reference/redis/clusters/delete) command. \n\n```\ngcloud redis clusters delete CLUSTER_ID \\\n--project=PROJECT_ID \\\n--region=REGION_ID\n```\n\nMake the following replacements:\n\n- \u003cvar translate=\"no\"\u003eCLUSTER_ID\u003c/var\u003e: the ID of the cluster 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 cluster is located\n\nFor example: \n\n```\ngcloud redis clusters delete my-cluster \\\n--project=my-project \\\n--region=us-central1\n```"]]