Remove a cluster that you no longer want to manage with Tanzu Platform.
This procedure assumes that you have a workload cluster under management that was added as an existing cluster or a cluster that was created through Tanzu Platform. For self-managed clusters that you want to remove from management, see Detach a managed cluster.
Make sure you have the appropriate permissions to delete a cluster.
Depending on your chosen approach, make sure you have done one of the following:
tanzu
CLI. For more information, see the VMware Tanzu CLI Documentation.You can remove a cluster from Tanzu Platform using either the hub or the tanzu
CLI.
In the confirmation dialog, select the method you want to use for removing the cluster.
To delete a cluster using the tanzu
CLI:
Run the following command, replacing <my-cluster>
with the name of your cluster:
tanzu operations cluster delete <my-cluster>
To remove a cluster from Tanzu Platform without deleting the cluster, add the --force
flag, for example:
tanzu operations cluster delete <my-cluster> --force
If you use the --force
flag, Tanzu Platform does not attempt to delete the cluster itself. You must manually delete the cluster and its resources using the cloud provider’s tools.