You can delete clusters in the Container Service console.

Procedure

  1. Log on to the Container Service console.
  2. In the left-side navigation pane, choose Clusters > Clusters to go to the Clusters page.
  3. Select the cluster and click More > Delete in the Actions column.
    Delete
  4. In the Delete Cluster dialog box, check the cluster information, select the I understand the above information and want to delete the specified cluster check box, and click OK.
    A sample screenshot is provided below.Example

What to do next

Failed to delete the cluster

ROS has no permission to delete resources that were manually added under ROS-created resources. For example, if you manually add a VSwitch under a ROS-created VPC instance, ROS cannot delete the VPC instance and therefore the cluster cannot be deleted.

Container Service allows you to force delete clusters. This function enables you to force delete a cluster and ROS resource stack if your first attempt to delete the cluster fails. However, you still need to manually release the resources that were manually added in the first place.

An error message appears when the attempt to delete a cluster fails.
Deletion failed
  1. Select the cluster that you failed to delete and choose More > Delete in the Actions column.
  2. In the dialog box that appears, you can view information about the resources that were manually added. Click OK to delete the cluster and ROS resource stack.
    Delete clusters
    Note In the Delete Cluster dialog box, if you select Retain Resources, resources that were manually added will be retained. You need to manually release these resources. For how to troubleshoot resources that cannot be released, see Failed to delete Kubernetes clusters: ROS stack cannot be deleted.