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]>

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

Back to Terraform Destroy directory