dotfiles/.config/fish/functions/vm_rm.fish

6 lines
191 B
Fish

function vm_rm -a domain -d 'Destroy, undefine, and delete the volume of a domain'
virsh destroy $domain
virsh undefine $domain
virsh vol-delete /home/m/libvirt/$domain.qcow2
end