Deleting a Cluster
You can delete Kubernetes clusters that you no longer need.
Deleting a Cluster Using OKS CLI
To delete one of your clusters, use the cluster delete command following this syntax:
Request sample
$ oks-cli cluster delete \
--project-name NAME_OF_PROJECT \
--cluster-name NAME_OF_CLUSTER
This command contains the following options that you need to specify:
-
cluster-name
: The name of the cluster, with a maximum length of 40 alphanumeric characters and dashes (-). This name must not start or end with a dash, and it must be unique within the project. -
(optional)
project-name
: The name of the project where the cluster will be created.
You must confirm the deletion of the cluster. The following message will display to indicate that the cluster has successfully been deleted:
Result sample
"Cluster abcd1234-ef56-gh78-ijklmn1234 successfully deleted"
Related Pages