func restRemoveAppTemplate(w *rest.ResponseWriter, r *rest.Request, client *node.ControlClient) { templateID, err := url.QueryUnescape(r.PathParam("templateId")) var unused int if err != nil { restBadRequest(w, err) return } err = client.RemoveServiceTemplate(templateID, &unused) if err != nil { restServerError(w, err) return } w.WriteJson(&simpleResponse{templateID, servicesLinks()}) }