Forrest logo
back to the terragrunt tool

terragrunt:tldr:e4e6f

terragrunt: Destroy Terraform-managed infrastructure.
$ terragrunt destroy
try on your machine

The command "terragrunt destroy" is used with the Terraform tool called Terragrunt.

Terragrunt is a thin wrapper for Terraform that provides extra functionality, such as environments, remote state management, and other helpful features.

The "destroy" command in Terragrunt is used to destroy the infrastructure resources created by Terraform. It essentially reverses the effect of the "apply" command, tearing down and deleting all the resources specified in the Terraform configuration files.

Before executing the "terragrunt destroy" command, Terragrunt will ask for confirmation to proceed with the destruction as it can potentially have a significant impact on the infrastructure. Once confirmed, Terragrunt will invoke Terraform's "destroy" command in the appropriate project directory, ensuring that all resources are deleted in the correct order to avoid any dependencies or issues.

It is important to use caution when running the "terragrunt destroy" command as it irreversibly destroys resources and cannot be undone. Therefore, it is recommended to thoroughly review the list of resources to be destroyed and take necessary precautions, such as backing up any critical data before proceeding with the command.

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