How to delete KVM VM guest using virsh command

Originally published at: https://www.cyberciti.biz/faq/howto-linux-delete-a-running-vm-guest-on-kvm/

I am a new Linux and KVM user. How do I delete a VM guest with virsh command line on Linux operating system? How do I delete a virtual machine called vps42 on Ubuntu or CentOS Linux server?


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki