From d02172f9efa459f014865693e3bf5544a9bb9626 Mon Sep 17 00:00:00 2001 From: Adam Herst Date: Tue, 4 May 2021 04:58:20 -0400 Subject: [PATCH] virsh-undefine: add page (#5847) --- pages/common/virsh-undefine.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/common/virsh-undefine.md diff --git a/pages/common/virsh-undefine.md b/pages/common/virsh-undefine.md new file mode 100644 index 000000000..fa200736c --- /dev/null +++ b/pages/common/virsh-undefine.md @@ -0,0 +1,16 @@ +# virsh-undefine + +> Delete a virtual machine. +> More information: . + +- 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}}`