github.com/wikibal01/hashicorp-terraform@v0.11.12-beta1/website/docs/commands/destroy.html.markdown (about) 1 --- 2 layout: "docs" 3 page_title: "Command: destroy" 4 sidebar_current: "docs-commands-destroy" 5 description: |- 6 The `terraform destroy` command is used to destroy the Terraform-managed infrastructure. 7 --- 8 9 # Command: destroy 10 11 The `terraform destroy` command is used to destroy the Terraform-managed 12 infrastructure. 13 14 ## Usage 15 16 Usage: `terraform destroy [options] [dir]` 17 18 Infrastructure managed by Terraform will be destroyed. This will ask for 19 confirmation before destroying. 20 21 This command accepts all the arguments and flags that the [apply 22 command](/docs/commands/apply.html) accepts, with the exception of a plan file 23 argument. 24 25 If `-auto-approve` is set, then the destroy confirmation will not be shown. 26 27 The `-target` flag, instead of affecting "dependencies" will instead also 28 destroy any resources that _depend on_ the target(s) specified. 29 30 The behavior of any `terraform destroy` command can be previewed at any time 31 with an equivalent `terraform plan -destroy` command.