From d7ed417fecf3c510165e9fee514868c34a4c5fb7 Mon Sep 17 00:00:00 2001 From: Renuka Apte Date: Thu, 10 May 2012 15:36:03 -0700 Subject: [PATCH] Add script to delete templates This is a common operation on XenServer, which seems to be a three step process. Change-Id: I125b9c11ace0b3454b7c974f9209aca01cdd7ed2 --- tools/xen/scripts/templatedelete.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tools/xen/scripts/templatedelete.sh diff --git a/tools/xen/scripts/templatedelete.sh b/tools/xen/scripts/templatedelete.sh new file mode 100755 index 0000000000..66765b2446 --- /dev/null +++ b/tools/xen/scripts/templatedelete.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +#Usage: ./templatedelete.sh + +templateuuid="$1" + +xe template-param-set other-config:default_template=false uuid="$templateuuid" +xe template-param-set is-a-template=false uuid="$templateuuid" +xe vm-destroy uuid="$templateuuid"