Delete a Cluster on Huawei Cloud Stack

WARNING

Deleting the cluster deletes the persistent and raw EVS disks of every node, and their data cannot be recovered. Detach in HCS any other disk that you need to keep: every disk still attached to an instance is deleted with it.

Run one of the following commands from a machine where ac is logged in to the platform:

ac config use-cluster global
ac adm alpha cluster destroy --dir <install-dir>      # preferred: manifests/ records what ac rendered
ac adm alpha cluster destroy --cluster <cluster-name> # without the directory

destroy lists what it will delete and asks you to type the cluster name; --yes skips the prompt and is required when standard input is not a terminal. If destroy is interrupted, run it again; it resumes where it stopped.

destroy also deletes the instances, the control plane ELB, which releases the VIP and the L4 and L7 addresses, and the control plane server group.

destroy removes only objects that carry the cluster's ownership label, including the encryption Secret that ac rendered. The credential Secret, a registry Secret, and the HCS VPC, subnets, security group, and image are left in place. --cluster global is refused.

If the Cluster stays in Deleting, see Troubleshoot a Cluster Stuck in Deleting.