2014-10-01 07:08:32 +02:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Command: destroy"
|
|
|
|
sidebar_current: "docs-commands-destroy"
|
2014-10-22 05:21:56 +02:00
|
|
|
description: |-
|
|
|
|
The `terraform destroy` command is used to destroy the Terraform-managed infrastructure.
|
2014-10-01 07:08:32 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
# 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
|
2014-12-06 00:29:00 +01:00
|
|
|
[apply command](/docs/commands/apply.html) accepts. If `-force` is
|
2014-10-01 07:08:32 +02:00
|
|
|
set, then the destroy confirmation will not be shown.
|