CmdID

CmdID / Commands

terraform-destroy

Destroy all objects managed by a Terraform configuration. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Destroy all infrastructure in the current directory

terraform destroyIdentify

Destroy infrastructure, skipping interactive approval

terraform destroy -auto-approveIdentify

Destroy a specific resource

terraform destroy -target resource_type.resource_name[instance_index]Identify

Specify values for input variables

terraform destroy -var 'name1=value1' -var 'name2=value2'Identify

Specify values for input variables from a file

terraform destroy -var-file path/to/file.tfvarsIdentify

Destroy infrastructure with compact warnings

terraform destroy -compact-warningsIdentify