Forrest logo
back to the eksctl tool

eksctl:tldr:43311

eksctl: Delete a cluster.
$ eksctl delete cluster --name=${name} --region=${region}
try on your machine

This command is used to delete an Amazon Elastic Kubernetes Service (EKS) cluster with eksctl.

Here is the breakdown of the command:

  • eksctl is the command-line tool for managing EKS clusters.
  • delete cluster is the action to remove an existing EKS cluster.
  • --name=${name} specifies the name of the cluster to delete. ${name} is a placeholder that you need to replace with the actual name of the cluster you want to delete.
  • --region=${region} specifies the AWS region where the cluster is located. ${region} is a placeholder that you need to replace with the actual region where the cluster is deployed.

By executing this command, the specified EKS cluster will be deleted, removing all associated resources such as EC2 instances, load balancers, and Auto Scaling groups. It's important to note that this action is irreversible, and the cluster and its data cannot be recovered after deletion.

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 eksctl tool