Add script to delete templates

This is a common operation on XenServer, which seems to be a three
step process.

Change-Id: I125b9c11ace0b3454b7c974f9209aca01cdd7ed2
This commit is contained in:
Renuka Apte 2012-05-10 15:36:03 -07:00
parent b03f2e575a
commit d7ed417fec

View File

@ -0,0 +1,9 @@
#!/bin/bash
#Usage: ./templatedelete.sh <template-uuid>
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"