terraform destroy -auto-approve

Category: IaC & Automation

terraform destroy -auto-approve

Destroy all managed infrastructure without prompting

Deletes every resource recorded in the state file with no confirmation, so nothing pauses between you and an emptied cloud account. Run terraform plan -destroy first to review the deletion list, and treat this command as last resort in shared environments. Deleted infrastructure cannot be recovered. Related: terraform plan -destroy.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.