Skip to main content

Delete Kubernetes Cluster

Deletes the cluster, including the Kubernetes endpoint and all worker nodes.

Firewalls and routes that were configured during cluster creation are also deleted.

Other Google Compute Engine resources that might be in use by the cluster, such as load balancer resources, are not deleted if they weren't present when the cluster was initially created.

External Documentation

To learn more, visit the GCP documentation.

Parameters

ParameterDescription
ClusterThe name of the cluster to delete.
LocationThe name of the Google Compute Engine location in which the cluster resides.
ProjectThe Google Developers Console project ID or project number.

Example Output

{
"name": "operation-1674038758613-96a46b6d",
"zone": "us-central1",
"operationType": "DELETE_CLUSTER",
"status": "RUNNING",
"selfLink": "https://container.googleapis.com/v1/projects/my-project/locations/us-central1/operations/operation-1674038758613-96a46b6d",
"targetLink": "https://container.googleapis.com/v1/projects/my-project/locations/us-central1/clusters/my-cluster",
"startTime": "2023-01-18T10:45:58.613658812Z"
}

Workflow Library Example

Delete Kubernetes Cluster with Gcp and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop