How to destroy a sandbox without prompts
Use --yes with whzbox destroy to skip the confirmation prompt.
Prerequisites
- An active Whizlabs session or an interactive terminal for re-login
Steps
1. Destroy the sandbox
whzbox destroy --yes
2. Confirm that the cache is empty
whzbox list
Verification
After a successful destroy, whzbox list prints:
(no sandboxes cached)
Troubleshooting
Problem: destroy still failed
If there is no active sandbox upstream, destroy returns a provider error.
Problem: destroy asked for credentials
destroy needs a valid session. If the cached session is expired and cannot be refreshed, log in again:
whzbox login