Forrest logo
back to the doctl tool

doctl-kubernetes-cluster:tldr:0459f

doctl-kubernetes-cluster: Delete a cluster.
$ doctl kubernetes cluster delete ${cluster_name}
try on your machine

The command "doctl kubernetes cluster delete ${cluster_name}" is used to delete a Kubernetes cluster in DigitalOcean using the doctl command-line tool.

Here's a breakdown of the command:

  • "doctl": It is the command-line tool for managing resources on the DigitalOcean platform.
  • "kubernetes cluster delete": This is the specific command within doctl to delete a Kubernetes cluster.
  • "${cluster_name}": It is a placeholder for the name of the Kubernetes cluster you want to delete. Replace "${cluster_name}" with the actual name of your cluster.

By running this command, the specified Kubernetes cluster will be permanently removed from your DigitalOcean account. Therefore, it's essential to confirm the cluster name to avoid accidentally deleting the wrong cluster.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the doctl tool