terraform destroy
Destroy all objects managed by a Terraform configuration. More information: https://developer.hashicorp.com/terraform/cli/commands/destroy.
- Destroy all infrastructure in the current directory:
terraform destroy
- Destroy infrastructure, skipping interactive approval:
terraform destroy -auto-approve
- Destroy a specific resource:
terraform destroy -target
- Specify values for input variables:
terraform destroy -var '=' -var '='
- Specify values for input variables from a file:
terraform destroy -var-file
- Destroy infrastructure with compact warnings:
terraform destroy -compact-warnings
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
