Skip to content

Astrona destroy

astrona destroy

Tear down a lab environment (both the normal run and any leftover 'astrona test' run)

Synopsis

Tear down a lab environment (both the normal run and any leftover 'astrona test' run).

With no lab-name, resolves the lab config the same way run/submit do (-c/--file/--git/--git-ref) and falls back to auto-discovering running labs if that fails.

With a lab-name (the exact name astrona list prints, e.g. 'astro-my-lab'), destroys that lab directly — no config needed, so -c/--file/--git/--git-ref are ignored and any teardown scripts are skipped.

With a glob pattern (contains *, ?, or [), matches against all currently-running lab names (same list astrona list shows) and destroys every match — e.g. astrona destroy 'astro-qemu-jumphost-*' (quote it so your shell doesn't expand the glob itself). No config needed, same trade-offs as a single name.

astrona destroy [lab-name|pattern] [flags]

Options

  -h, --help   help for destroy

Options inherited from parent commands

  -c, --config string    Path or URL to the lab config directory (with --git: a subdirectory within the cloned repo) (default ".")
  -f, --file string      Configuration file name override (default "config.yaml")
      --git string       Git repository URL to clone/pull (https://, git@host:, or ssh://) — --config then selects a subdirectory within it
      --git-ref string   Git branch, tag, or commit to check out (used with --git; default: the repo's default branch)

SEE ALSO

  • astrona - Astrona is the Astrona lab community CLI
Auto generated by spf13/cobra on 22-Aug-2026