Anthos clusters on Azure is available for customers with an existing support relationship with Google Cloud. Contact your account representative for access.

Delete a cluster

This page explains how to delete a node pool, a cluster, and an AzureClient resource.

Delete a node pool

To delete a cluster, you must first delete all of its node pools.

To delete a node pool, run the following command:

gcloud alpha container azure node-pools delete NODE_POOL_NAME \
    --cluster CLUSTER_NAME \
    --location GOOGLE_CLOUD_LOCATION

Replace the following:

  • NODE_POOL_NAME: the name of the node pool to delete
  • CLUSTER_NAME: the name of the cluster that the node pool is attached to
  • GOOGLE_CLOUD_LOCATION: the Google Cloud location hosting the node pool

Delete a cluster

Before deleting a cluster, make sure that you have deleted all of its node pools.

To delete a cluster, run the following command:

gcloud alpha container azure clusters delete CLUSTER_NAME \
    --location GOOGLE_CLOUD_LOCATION

Replace the following:

  • CLUSTER_NAME: the name of the cluster to delete
  • GOOGLE_CLOUD_LOCATION: the Google Cloud location hosting this cluster

Delete an AzureClient resource

Before deleting the client, make sure that you have deleted all the clusters that use the client.

To delete an AzureClient resource, run the following command:

gcloud alpha container azure clients delete CLIENT_NAME \
    --location=GOOGLE_CLOUD_LOCATION

Replace the following:

  • CLIENT_NAME: the name of the AzureClient to delete
  • GOOGLE_CLOUD_LOCATION: the Google Cloud location where the client is located

After deleting the AzureClient resource, remove the certificate at Azure AD that you uploaded when you created the client.