destroy¶
whzbox destroy tears down the currently active sandbox upstream and clears cached sandbox entries locally.
Syntax¶
Arguments¶
This command takes no positional arguments.
Flags¶
| Flag | Type | Default | Description |
|---|---|---|---|
--yes |
boolean | false |
Skips the interactive confirmation prompt. Required in non-interactive environments. |
Behavior¶
- Shows a confirmation prompt unless
--yesis set. - Uses the session service, which may refresh or prompt before the destroy call.
- Calls the Whizlabs destroy endpoint without a local sandbox identifier.
- Clears all cached sandbox entries after a successful destroy.
- Returns a provider error when the upstream reports that no active sandbox exists.
Output¶
This command writes no structured data to stdout on success.
Exit behavior¶
0on success2when authentication fails before destroy3on provider failures, including "no active sandbox"4if the user aborts the confirmation prompt5if confirmation is required but no interactive terminal is available