terraform destroy
Jump to navigation
Jump to search
terraform destroy
destroy all remote objects managed by a particular Terraform configuration.
Examples[edit]
terraform destroy
terraform destroy -auto-approve
terraform destroy -target=your_resource
terraform destroy -var-file="your_file.tfvars"
terraform destroy --help
Executions examples[edit]
Related[edit]
Errors[edit]
DependencyViolation: .../... has dependencies and cannot be deleted.
Error: deleting EBS Volume
- AWS Error: failed to refresh cached credentials
- AWS Error: A Profile was specified along with the environment variables "AWS ACCESS KEY ID" and "AWS SECRET ACCESS KEY". The Profile is now used instead of the environment variable credentials.
- Warning: EC2 Default Network ACL
Related terms[edit]
Activities[edit]
See also[edit]
terraform
[destroy
|-target=resource | --help ]
Still destroying..., Error: deleting, DependencyViolation
, Destroy complete! Resources:- 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: