mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-06 06:37:58 -05:00
909 B
909 B
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| docs | Command: destroy | docs-commands-destroy | The `terraform destroy` command is used to destroy the Terraform-managed infrastructure. |
Command: destroy
The terraform destroy command is used to destroy the Terraform-managed
infrastructure.
Usage
Usage: terraform destroy [options] [dir]
Infrastructure managed by Terraform will be destroyed. This will ask for confirmation before destroying.
This command accepts all the flags that the
apply command accepts. If -force is
set, then the destroy confirmation will not be shown.
The -target flag, instead of affecting "dependencies" will instead also
destroy any resources that depend on the target(s) specified.
The behavior of any terraform destroy command can be previewed at any time
with an equivalent terraform plan -destroy command.