This page explains how to delete a Kubernetes Engine container cluster.
When you delete a cluster, the following resources are deleted:
- The master resources
- All of the node instances in the cluster
- Any Pods that are running on those instances
- Any firewalls and routes created by Kubernetes Engine at the time of cluster creation
- Data stored in host
The following resources are not deleted:
Before you begin
To prepare for this task, perform the following steps:
- Ensure that you have installed the Cloud SDK.
- Set your default project ID:
gcloud config set project [PROJECT_ID]
- Set your default compute zone:
gcloud config set compute/zone [COMPUTE_ZONE]
Deleting a cluster
To delete a container cluster using the GCP Console:
Visit the Kubernetes Engine menu in GCP Console.
Select the checkbox next to the cluster to be deleted.
- Click Delete. When prompted to confirm, click Delete again.
To delete a container cluster using the
gcloud command-line tool, run
the following command:
gcloud container clusters delete [CLUSTER_NAME]
For more information, refer to the
gcloud container clusters delete