virsh-undefine: add page (#5847)

This commit is contained in:
Adam Herst
2021-05-04 04:58:20 -04:00
committed by GitHub
parent 75b5a8da0a
commit d02172f9ef

View File

@@ -0,0 +1,16 @@
# 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}}`