Plan destruction of all managed infrastructure.

Section: Plan and Apply

Plan destroy

bash
bash
terraform plan -destroy
Explanation

Plan destruction of all managed infrastructure.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Plan and Apply
Create execution plan
Show the actions Terraform would take to reach the desired state.
OpenIn sheetbashsame section
Save plan to file
Write the generated plan to a file for later apply.
OpenIn sheetbashsame section
Plan with variable
Set an input variable directly on the command line.
OpenIn sheetbashsame section
Plan with var file
Use a tfvars file during planning.
OpenIn sheetbashsame section
Target one resource
Plan changes for a specific resource address.
OpenIn sheetbashsame section
Refresh-only plan
Compare state with remote objects and update state without proposing config changes.
OpenIn sheetbashsame section