ワンクリックで
destroy-vm
Destroy a VM and its disks. Use when user wants to remove a VM but keep its machine config for later recreation.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Destroy a VM and its disks. Use when user wants to remove a VM but keep its machine config for later recreation.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Set up a new nixos-vm-template context for managing VMs on a hypervisor (libvirt, proxmox KVM, or proxmox-lxc containers). Use this when the user wants to configure a new VM management context, create an alias, or set up environment variables for a backend.
Completely remove a VM including its machine config. Use when user wants to permanently delete everything about a VM.
Recreate a VM from its existing machine config. Use when user wants to rebuild a destroyed VM or reset a VM to fresh state.
Create a new NixOS VM on the configured backend (libvirt or proxmox). Use this when the user wants to create a new virtual machine.
Create or restore VM backups. Use for full VM backups that can survive VM destruction.
Clone an existing VM to create a new VM with copied /var data but fresh identity.
| name | destroy-vm |
| description | Destroy a VM and its disks. Use when user wants to remove a VM but keep its machine config for later recreation. |
| allowed-tools | Read, Bash, AskUserQuestion |
Destroy a VM and delete its disks while preserving the machine config.
Run just list to show existing VMs. Ask which VM to destroy.
IMPORTANT: Warn the user clearly:
just recreate {name}Ask for explicit confirmation.
Run:
yes | just destroy {NAME}
Confirm the VM was destroyed. Mention they can recreate it with just recreate {name} or fully remove it with just purge {name}.
If the user wants to completely remove everything including machine config, use:
yes | just purge {NAME}
This deletes the VM, disks, AND machine config. Cannot be undone.