|
|
|
|
@ -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).
|
|
|
|
|
|