Delete a running guest

virsh

  • Manage virsh guest domains. (NOTE: 'guest_id' can be the id, name or UUID of the guest).
    Some subcommands such as `virsh list` have their own usage documentation.
    More information: <https://libvirt.org/virshcmdref.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

virsh destroy {{guest_id}} && virsh undefine {{guest_id}}

click the source code to copy install virsh on any operating system with command-not-found.com