Difference between revisions of "Terraform destroy"
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
* <code>terraform destroy</code> | * <code>terraform destroy</code> | ||
* <code>[[terraform destroy -auto-approve]]</code> | * <code>[[terraform destroy -auto-approve]]</code> | ||
− | * <code> | + | * <code>terraform destroy -target=your_resource</code> |
* <code>terraform destroy [[-var-fil]]e="your_file.tfvars"</code> | * <code>terraform destroy [[-var-fil]]e="your_file.tfvars"</code> | ||
* <code>[[terraform destroy --help]]</code> | * <code>[[terraform destroy --help]]</code> |
Revision as of 10:16, 17 February 2022
terraform destroy
destroy all remote objects managed by a particular Terraform configuration.
https://www.terraform.io/docs/cli/commands/destroy.html
Examples
terraform destroy
terraform destroy -auto-approve
terraform destroy -target=your_resource
terraform destroy -var-file="your_file.tfvars"
terraform destroy --help
Executions examples
Related commands
Related terms
See also
terraform
[destroy
|-target=resource | --help ]
Still destroying..., Error: deleting, DependencyViolation
- Terraform configuration files, Terraform state files:
.tf
,.tfvars
,main.tf, outputs.tf
,variables.tf
,.terraform.d/
,terraform init
,providers.tf
,.terraform/
,terraform.tfstate
,.terraform.lock.hcl
,terraform.tfstate.d, override.tf, versions.tf
terraform
[untaint | fmt
|apply
|show
|state
|init | plan | console | output
|validate
|destroy
|debug
|import
|providers
|get
|graph
|workspaces
|resource
|login
|-var-file
|state mv
|state pull
|state push
|state replace-provider
|state rm
|force-unlock
|env
|tfe
|--version
|remote-exec
|delete on termination
| deprecated commands |terraform --help
]
Advertising: