Documentation Index
Fetch the complete documentation index at: https://docs.vers.sh/llms.txt
Use this file to discover all available pages before exploring further.
vers kill
Delete one or more VMs by ID or alias.Usage
The
kill command is an alias for vers delete. Both commands work identically.Options
| Option | Description |
|---|---|
--yes, -y | Skip confirmation prompts |
--recursive, -r | Recursively delete all children |
Examples
Delete VMs
How it works
Thekill command provides different deletion strategies:
VM deletion
- Single VM: Deletes the specified VM and handles HEAD cleanup
- Multiple VMs: Processes each VM sequentially with error handling
- HEAD VM: Optimized path for deleting the current HEAD VM
- Recursive deletion: Deletes VM and all its children when using
-r
Confirmation prompts
Basic deletion confirmation
HEAD impact warning
Error handling
VM with children
Failed operations
For multiple targets, the command provides detailed summaries:HEAD cleanup
When deletion affects your current HEAD VM:Prerequisites
- VMs must exist and be accessible
- For recursive deletion, you must own all child VMs
- Network connectivity to perform deletion operations
See Also
- vers status - Check current environment
- vers run - Start new environment after deletion