Interview Prep/Terraform/Workflow and CLI

What does `terraform destroy` do?

BeginnerConceptWorkflow and CLI
Answer

It removes every resource tracked in the current state; it is equivalent to terraform apply -destroy. Run terraform plan -destroy first to preview. Resources with prevent_destroy = true make it fail, and some (non-empty S3 buckets) fail unless force_destroy is set.

All Terraform questions Roadmap: Terraform

More on Workflow and CLI