Kubernetes clusters on Civo will remain in your account until you delete them. Clusters in your account are billed hourly for each node and count towards your account quota. If you no longer need a Kubernetes cluster, you can delete it in the following ways.
Cluster deletion is immediate and irreversible. Make sure you have retrieved any data you may need from an instance before deleting it.
- Civo CLI
Deleting a cluster from the Dashboard
You can delete a cluster from its dashboard page by clicking the "Delete" button on the top right of the page, also shown below:
As a precaution, the system will ask you to confirm the name of the cluster you are looking to delete.
When you confirm the cluster name, the system will proceed to delete the cluster immediately.
Deleting an cluster using Civo CLI
Ensuring your current region is set to the one where the cluster is running, you can delete it using:
civo kubernetes delete cluster_name
By default, Civo CLI will confirm whether you want to proceed:
$ civo kubernetes delete demo-cluster
Warning: Are you sure you want to delete the demo-cluster Kubernetes cluster (y/N) ? y
The Kubernetes cluster (demo-cluster) has been deleted
For scripting use, you can add a
-y flag to Civo CLI commands which usually require confirmation. This will assume you will answer "yes" to any prompt.