pltf terraform destroy

Generate (if needed) and destroy Terraform for a spec

Synopsis

Render Terraform if missing, then run 'terraform destroy'. Mirrors apply defaults (modules, output layout) and exposes Terraform knobs for targets, locking, refresh behavior, and color.

pltf terraform destroy [flags]

Examples

  pltf terraform destroy -f env.yaml -e prod
  pltf terraform destroy -f service.yaml -e dev --target=module.app-bucket

Options

      --auto-approve          Pass -auto-approve to terraform destroy
  -e, --env string            Environment key to render (dev, prod, etc.)
  -f, --file string           Path to the Environment or Service YAML file (default "env.yaml")
  -h, --help                  help for destroy
  -i, --input                 Ask for input if necessary (default false)
  -l, --lock                  Lock state when locking is supported (default true)
  -T, --lock-timeout string   Lock timeout (e.g. 0s, 30s)
  -m, --modules string        Override modules root; defaults to embedded modules
  -C, --no-color              Disable color output
  -o, --out string            Output directory for generated Terraform
  -p, --parallelism int       Limit Terraform parallelism (0 = default)
  -r, --refresh               Update state prior to actions (default true)
  -t, --target stringArray    Optional Terraform target address (repeatable)
      --var stringArray       Override variable as key=value; merges over vars and supports bool/int/JSON/list parsing. Can be repeated for multiple overrides.

Options inherited from parent commands

      --telemetry   Enable anonymous telemetry (usage metrics). Currently a stub/no-op unless enabled.
  -V, --verbose     Enable verbose logging

SEE ALSO

Auto generated by spf13/cobra on 21-Dec-2025