smolvm sandbox delete removes sandboxes and releases their stored resources. Use it for normal cleanup after a workflow, or with --all when you want to clear every sandbox on the host.
Synopsis
Arguments
string
One or more sandbox names or IDs to delete.
Options
flag
Delete every sandbox on the host.
flag
Skip the confirmation prompt for
--all. Required for --all --json.flag
Show what would be deleted without deleting anything.
flag
Print a JSON envelope instead of formatted text.
Examples
Delete one sandbox
Delete several sandboxes
Preview full cleanup
Delete every sandbox
Use JSON in automation
What gets cleaned up
For each target, SmolVM stops the sandbox if needed, removes its runtime state, releases network resources, deletes the per-sandbox disk state it owns, and removes the sandbox’s<vm_id>.log runtime log.
Reclaiming a leaked disk
If a sandbox row has already been dropped from the inventory but its per-sandbox disk still exists on disk,smolvm sandbox delete <id> reclaims the disk by deriving its path from the sandbox ID instead of failing with “not found”. This covers cases where a crash or an interrupted teardown left a disk behind without a matching row.
To sweep leftovers from sandboxes whose IDs you no longer know, use smolvm sandbox prune.
Related commands
smolvm sandbox list- Review targets before deletingsmolvm sandbox stop- Stop without deletingsmolvm sandbox prune- Sweep disks and logs left behind by deleted sandboxessmolvm prune- Remove old image caches
