1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash name=$1 if [[ -z $name ]]; then echo "usage: $0 <name>"; exit 0 fi virsh destroy $name virsh undefine $name virsh vol-delete $name.img nfs