terraform Verified current stable Not installed? Cloud Infrastructure

Terraform / Destroy Infrastructure Managed By Terraform

Destroy Infrastructure Managed By Terraform

Terraform command syntax to destroy infrastructure managed by terraform. Copyable examples, output expectations, and common mistakes.

$
Terminal
terraform apply -destroy

Command Breakdown

What each part is doing

terraform
Base Command
The executable that performs this operation. Here it runs Terraform before the shell applies any redirect operators.
-destroy
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative cloud infrastructure tools for the same job.