summaryrefslogtreecommitdiffstats
path: root/remove-vm.sh
blob: 3ee44dfecaaa2079e843fc94e72b2f999b3ec10c (plain)
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 --pool default