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

last updated in Categories Link
How to delete a Linux KVM guest

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“.

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.