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

6 lines
189 B
Fish
Raw Normal View History

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/libvirt/$domain.qcow2
end