Deleting a Cluster

This page explains how to delete a Kubernetes Engine cluster.

Overview

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 hostPath and emptyDir volumes

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]
  • Update all gcloud commands to the latest version:
    gcloud components update

Deleting a cluster

Console

To delete a cluster using the GCP Console:

  1. Visit the Kubernetes Engine menu in GCP Console.

    Visit the Kubernetes Engine menu

  2. Select the checkbox next to the cluster to be deleted.

  3. Click Delete. When prompted to confirm, click Delete again.

gcloud

To delete a 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 documentation.

What's next

Was this page helpful? Let us know how we did:

Send feedback about...

Kubernetes Engine