destroy

Destroy Terraform lab resources in hal and validate teardown output.

29|8|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/hashimiche/hal --skill destroy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: destroy
Source: https://github.com/hashimiche/hal/tree/main/internal/skills/data/terraform/destroy
Command: npx skills add https://github.com/hashimiche/hal --skill destroy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Terraform labs require manual teardown steps that are error-prone and time-consuming. This skill provides a reliable, repeatable teardown workflow to ensure environments are reset quickly and safely.

Core Features & Use Cases

  • Structured teardown of Terraform resources to guarantee a clean state after each lab run.
  • Safe, deterministic lifecycle with validation of outcomes and concise lab-state reporting.
  • Use Case: after a failed provisioning or when resetting a lab to baseline, run the destroy command to restore a known-good environment.

Quick Start

Run hal terraform delete to teardown all lab resources and reset the environment.

Frequently Asked Questions about destroy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Terraform lab teardown and cleanup?

Automate Terraform lab teardown by running a structured destroy command that validates output and resets the environment. This provides a repeatable workflow to safely remove resources and restore a known-good baseline.

What is the best way to reset a Terraform lab after a failed provisioning?

The best way to reset a Terraform lab after failed provisioning is to run a deterministic teardown command. It cleans up leftover resources, validates the destruction, and summarizes the final lab state for a consistent baseline.

Can I validate Terraform resource destruction output automatically?

Yes, automated Terraform teardown validates command output during destruction. It checks results, summarizes the current lab state, and advises the next recommended command in the lifecycle to ensure a clean environment.

Do I need any dependencies to destroy Terraform lab resources?

No dependencies are required to destroy Terraform lab resources. The teardown workflow operates standalone within the hal environment, executing cleanup and validation steps without needing additional components or external tools.

Why does manual Terraform teardown cause environment inconsistencies?

Manual Terraform teardown causes inconsistencies due to human error and missed steps during resource cleanup. An automated teardown workflow overcomes this by enforcing a deterministic lifecycle that validates outcomes and guarantees a clean state.

When should I run a Terraform destroy command in a lab lifecycle?

Run a Terraform destroy command during routine lab resets, after failed provisioning, or as part of a standard teardown process. This ensures all resources are removed and the environment is restored to a consistent baseline.