code: public JsonResponse deleteTemplate(String template) throws IOException {
          Map<String, Object> data = new HashMap<String, Object>();
          data.put(Template.PARAM_TEMPLATE, template);
          return apiDelete(ApiAction.template, data);
      }
docs: Delete existing template
  @param template template name
  @throws IOException