Une fois familiarisé avec GKE, effectuez un nettoyage pour éviter que des frais ne vous soient facturés.
Si vous prévoyez de suivre d'autres tutoriels, attendez de les avoir terminés avant de procéder au nettoyage. Vous pouvez utiliser l'exemple de cluster Kubernetes dans la plupart des tutoriels GKE.
Effectuer un nettoyage pour éviter que des frais ne vous soient facturés
Si vous avez créé un projet pour apprendre à utiliser GKE et que vous n'en avez plus besoin, supprimez-le.
Si vous avez utilisé un projet GKE existant, supprimez les ressources que vous avez créées pour éviter que des frais ne soient facturés sur votre compte :
Sélectionnez la ligne contenant hello-world-cluster, puis cliquez sur Supprimer.
Dans la fenêtre Supprimer hello-world-cluster, procédez comme suit :
Dans le champ hello-world-cluster, saisissez hello-world-cluster.
Cliquez sur Supprimer.
Si vous recevez un message d'erreur vous indiquant que le cluster est en cours de réparation, attendez la fin du processus, puis supprimez le cluster. Cette opération peut prendre un certain temps.
Si vous avez créé un récepteur de journaux et un bucket en suivant les instructions d'autres tutoriels :
Accédez à la page Stockage des journaux de Cloud Logging.
Planifiez, concevez, déployez et exploitez de grandes charges de travail sur des clusters GKE tout en effectuant leur scaling en fonction des objectifs de niveau de service (SLO).
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/07/14 (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/07/14 (UTC)."],[],[],null,["# Clean up the sample cluster and workload\n\n[Autopilot](/kubernetes-engine/docs/concepts/autopilot-overview)\n\n*** ** * ** ***\n\nWhen you finish learning about GKE, clean up to avoid\nbilling charges.\n\nIf you plan to take additional tutorials, wait until you finish those\ntutorials before you clean up. You can use the sample Kubernetes cluster\nin most GKE tutorials.\n\nClean up to avoid billing charges\n---------------------------------\n\nIf you created a new project to learn about GKE and you no\nlonger need the project, [delete the project](https://console.cloud.google.com/cloud-resource-manager).\n\nIf you used an existing GKE project, delete the resources you\ncreated to avoid incurring charges to your account:\n\n1. Go to the GKE **Clusters** page.\n\n\n [Go to Clusters](https://console.cloud.google.com/kubernetes/list/overview)\n\n \u003cbr /\u003e\n\n2. Select the row containing **hello-world-cluster** , and click\n **Delete**.\n\n3. In the **Delete hello-world-cluster** window, do the following:\n\n 1. In the **hello-world-cluster** field, enter `hello-world-cluster`.\n\n 2. Click **Delete**.\n\n If you receive an error message about the cluster being repaired, you can\n wait for the process to complete, and then delete the cluster. This operation\n might take some time to complete.\n4. If you created a logs sink and bucket when following instructions in other\n tutorials:\n\n 1. Go to the Cloud Logging **Logs storage** page.\n\n\n [Go to Logs storage](https://console.cloud.google.com/logs/storage)\n\n \u003cbr /\u003e\n\n 2. Select **hello-world-cluster-bucket** and click **Delete**.\n\n 3. Go to the Logging **Log router** page.\n\n\n [Go to Log router](https://console.cloud.google.com/logs/router)\n\n \u003cbr /\u003e\n\n 4. Select **hello-world-cluster-sink** and click **Delete**.\n\nWhat's next\n-----------\n\n- View [code samples](/docs/samples) demonstrating the usage of\n Google Cloud products.\n\n- Discover [best practices and reference architectures](/architecture/application-development)\n for application development \"Architecture guides for application development\"\n\n- [Plan, architect, deploy, and operate](/kubernetes-engine/docs/best-practices/scalability)\n large workloads on GKE clusters while scaling workloads within\n service-level objectives (SLOs)."]]