DevOps · Command
terraform destroy
terraform destroy removes all infrastructure managed by the current Terraform configuration. It is mainly useful for cleaning up temporary environments.
Last updated
- Since
- 0.15.2 for the -destroy option to terraform apply
Syntax
terraform destroy [options]In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
terraform apply -destroyterraform plan -destroy-targetterraform validateremoved blockdestroy-time provisioner