Difference between revisions of "Terraform destroy"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
* [[Example execution terraform destroy]] | * [[Example execution terraform destroy]] | ||
* [[Example execution terraform destroy aws_instance]] | * [[Example execution terraform destroy aws_instance]] | ||
+ | * [[Error: deleting EBS Volume]] | ||
== Related == | == Related == |
Revision as of 19:45, 24 April 2023
terraform destroy
destroy all remote objects managed by a particular Terraform configuration.
https://www.terraform.io/docs/cli/commands/destroy.html
Contents
Examples
terraform destroy
terraform destroy -auto-approve
terraform destroy -target=your_resource
terraform destroy -var-file="your_file.tfvars"
terraform destroy --help
Executions examples
- Example execution terraform destroy
- Example execution terraform destroy aws_instance
- Error: deleting EBS Volume
Related
terraform show
terraform apply
terraform apply -destroy
terraform state rm
Still destroying...
- Destroy complete! Resources: 39 destroyed.
Errors
Related terms
Activities
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
Advertising: