Purge VM Completely

VerifiedCaution

Permanently removes a VM, its disks, and configuration. This action is irreversible and deletes all data completely.

Sby Skills Guide Bot
DevOpsIntermediate
206/2/2026
Claude Code
#vm#purge#deletion#cleanup#irreversible

Recommended for

Our review

Completely removes a virtual machine, including its disks and configuration.

Strengths

  • Irreversible action ensures complete cleanup
  • Prevents leftover files or orphan configurations
  • Requires explicit double confirmation

Limitations

  • Cannot be undone – no automatic backup
  • Requires user to know which VM to delete
  • Depends on `just` tool and project setup
When to use it

When you want to permanently free resources and erase all traces of a VM.

When not to use it

If you only need to stop the VM or want to back it up before deletion.

Security analysis

Caution
Quality score85/100

The skill runs a Bash command to purge a VM, which is destructive. However, it first lists machines, warns the user about permanent data loss, and requires explicit confirmation before running the just command with 'yes |' to bypass the interactive prompt. The operation is legitimate and user-initiated; no malicious exfiltration or obfuscation is present.

No concerns found

Examples

Purge a VM after final use
I'm done with my test VM 'dev-box'. Please purge it completely.
Clean up all old VMs
List my machines and help me decide which ones to purge permanently.
Irreversible deletion request
Remove my VM 'webserver' entirely – disks, config, everything.

name: purge-vm description: Completely remove a VM including its machine config. Use when user wants to permanently delete everything about a VM. allowed-tools: Read, Bash, AskUserQuestion

Purge VM Skill

Completely remove a VM including its disks AND machine configuration. This cannot be undone.

Instructions

Step 1: Get VM Name

Run just list-machines to show existing machine configs. Ask which VM to purge.

Step 2: Confirm Purge

IMPORTANT: Warn the user clearly:

  • The VM will be stopped and removed
  • All VM disks will be deleted
  • All data in /var and /home will be PERMANENTLY LOST
  • The machine config (machines/{name}/) will ALSO be deleted
  • This CANNOT be undone - unlike destroy, there's no way to recreate the VM

Ask for explicit confirmation.

Step 3: Purge

Run:

yes | just purge {NAME}

The yes | is required to bypass the interactive confirmation prompt.

Step 4: Report Results

Confirm the VM and its config were completely removed.

Related skills