diff options
-rwxr-xr-x | destroy-vm.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/destroy-vm.sh b/destroy-vm.sh index 001db9e..5ea3ff8 100755 --- a/destroy-vm.sh +++ b/destroy-vm.sh @@ -44,4 +44,9 @@ dmsetup remove $VG-$vm--rootp2 lvremove /dev/$VG/$vm-root lvremove /dev/$VG/$vm-swap + +rm /var/lib/libvirt/cloudinit/$vm-cloudinit_seed.img +rm -v /var/lib/libvirt/cloudinit/$vm01 +rm -v /var/lib/libvirt/cloudinit/$vm00 + virsh undefine $vm |