The Terraform CLI command terraform destroy is just a convenience alias. For which command?
Experience Level: Junior
Tags: Terraform
Answer
The command terraform destroy is an alias for the following command:
terraform apply -destroy
This command destroys Terraform-managed infrastructure.
Related Terraform job interview questions
How can you pass variables to Terraform CLI console command?
Terraform JuniorUsing Terraform CLI, how can you experiment with Terraform interpolations?
Terraform JuniorHow do you approve changes presented by terraform apply command of Terraform CLI?
Terraform JuniorUsing Terraform CLI, how do you apply plan that you previously stored using terraform plan command?
Terraform JuniorUsing Terraform CLI, how do you destroy all infrastructure that is present in your Terraform state?
Terraform Junior