Deleting a Kubernetes cluster
Overview
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.
- Dashboard
- 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.
If you have any external volumes attached to the cluster when it is deleted, these will remain in your account for use. They are not automatically removed. As such, any external volumes will be charged until they are explicitly deleted.
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.