Update destroy.mdx

mention -target
pull/32615/head
Jonathan Newnham 3 years ago committed by GitHub
parent 85eb978f92
commit 5ebcd60759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,3 +44,14 @@ you the proposed destroy changes without executing them.
-> **Note:** The `-destroy` option to `terraform apply` exists only in
Terraform v0.15.2 and later. For earlier versions, you _must_ use
`terraform destroy` to get the effect of `terraform apply -destroy`.
## Options
In exceptional circumstances, it may be useful to use the `-target` option.
This will destroy only a particular resource (and its dependencies):
```
terraform destroy -target RESOURCE_TYPE.NAME
```
For more about `-target`, see [`plan`](/cli/commands/plan).

Loading…
Cancel
Save