System Grab Bag

View all TLDR pages from common (or from all pages)

virsh-undefine

Delete a virtual machine. More information: https://manned.org/virsh.
  • Delete only the virtual machine configuration file:
    virsh undefine --domain {{vm_name}}
  • Delete the configuration file and all associated storage volumes:
    virsh undefine --domain {{vm_name}} --remove-all-storage
  • Delete the configuration file and the specified storage volumes using the target name or the source name (as obtained from the virsh domblklist command):
    virsh undefine --domain {{vm_name}} --storage {{sda,path/to/source}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.