virsh destroy && virsh undefine = Delete a guest VM on Linux KVM after creating it with virt-install

Posted on in Categories Link last updated October 28, 2016

If you created a KVM guest from the command line with first install. Say, after sometimes you do not need a guest VM. However, how do you I delete this KVM guest from the command line? The answer is simple:

virsh destroy VM_NAME && virsh undefine VM_NAME

Of course as usual stuff in IT may get complicated. See “how to delete a guest on Linux KVM for more info“.