terraform-destroy
Verified for current stable LTS
Terraform Destroy Command: Destroy Specific Resource
Use for destroy specific resource with Terraform Destroy. Exact CLI syntax to destroy specific resource using Terraform Destroy.
When to use this: Use for destroy specific resource with Terraform Destroy.
Command Syntax
terraform destroy -target <resource_type.resource_name[instance_index]> terraform destroy -target <resource_type.resource_name[instance_index]> Live Command Builder
Final Command
terraform destroy -target <resource_type.resource_name[instance_index]> Command Breakdown
-target- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to destroy specific resource using Terraform Destroy.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Terraform Destroy Command: Destroy All Infrastructure Current Directory
terraform destroy Terraform Destroy Command: Destroy Infrastructure Compact Warnings terraform destroy -compact-warnings Terraform Destroy Command: Destroy Infrastructure Skip Interactive Approval terraform destroy -auto-approve Terraform Destroy Command: Specify Input Variables terraform destroy -var '<name1>=<value1>' -var '<name2>=<value2>' Terraform Destroy Command: Specify Input Variables From File terraform destroy -var-file <path/to/file.tfvars>