github.com/armen/terraform@v0.5.2-0.20150529052519-caa8117a08f1/website/source/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 flags that the
    22  [apply command](/docs/commands/apply.html) accepts. If `-force` is
    23  set, then the destroy confirmation will not be shown.
    24  
    25  The `-target` flag, instead of affecting "dependencies" will instead also
    26  destroy any resources that _depend on_ the target(s) specified.
    27  
    28  The behavior of any `terraform destroy` command can be previewed at any time
    29  with an equivalent `terraform plan -destroy` command.