# File lib/deltacloud/drivers/rhevm/rhevm_client.rb, line 201 def destroy_template(id, headers={}) headers.merge!({ :content_type => 'application/xml', :accept => 'application/xml', }) tmpl = template(id) raise RHEVMBackendException::new("Requested VM not found in datacenter #{self.current_datacenter.id}") unless tmpl headers.merge!(auth_header) RHEVM::client(@api_entrypoint)["/templates/%s" % id].delete(headers) return true end