You can delete clusters of Container Service for Kubernetes (ACK) in the ACK console.
- Log on to the ACK console.
- In the left-side navigation pane, click Clusters.
- On the Clusters page, find the cluster that you want to delete and choose in the Actions column.
- In the Delete Cluster dialog box, verify that the cluster is the one you want to delete, select the cloud
resources that you want to retain, select I understand the above information and want to delete the specified cluster, and then click OK.The following figure shows an example of the Delete Cluster dialog box. The actual information displayed in the dialog box depends on the cluster that you want to delete.
Why do I fail to delete an ACK cluster?
Resource Orchestration Service (ROS) does not have permissions to delete resources that are manually added to an ROS stack. For example, ROS cannot release a virtual private cloud (VPC) that contains a manually added VSwitch. Consequently, the cluster deployed in the VPC cannot be deleted.
ACK allows you to forcibly delete clusters. If your first attempt to delete a cluster fails, you can forcibly delete the cluster and the ROS stack. However, when you forcibly delete a cluster, the ROS-created resources and the manually added resources are not released. You must manually release these resources.
- After your first attempt to delete a cluster fails, choose in the Actions column.
- In the dialog box that appears, you can view the resources that failed to be deleted.
Click OK to delete the cluster and ROS stack.
Note In the dialog box that appears, if you select Retain Resources, the ROS-created resources and the manually added resources are both retained. You must manually release these resources. For more information about how to locate resources that cannot be released by ROS, see Failed to delete Kubernetes clusters: ROS stack cannot be deleted.