code: @DELETE
      @Path("{uuid}")
      public Response deleteTemplate(@PathParam("uuid") String uuid) {
          logger.debug("DELETE /templates/{}", uuid);
          TemplateHelperE templateRestHelper = getTemplateHelper();
          boolean deleted;
          try {
              deleted = templateRestHelper.deleteTemplateByUuid(uuid);
              if (deleted)
                  return buildResponse(HttpStatus.OK, /*egarrido it was returned HttpStatus.NO_CONTENT, I don't know why */
                          "Template with uuid " + uuid + " was deleted successfully");
              else
                  return buildResponse(HttpStatus.NOT_FOUND, 
                          printError(HttpStatus.NOT_FOUND, "There is no template with uuid "
                                  + uuid + " in the SLA Repository Database"));
          } catch (DBExistsHelperException e) {
              logger.info("deleteTemplate Conflict:"+e.getMessage());
              return buildResponse(HttpStatus.CONFLICT, printError(HttpStatus.CONFLICT, e.getMessage()));
          }
      }
docs: Deletes a template given the corresponding template_id
  
  
  <pre>
  DELETE /templates/{template_id}
  
  
  Request:
  DELETE /templates HTTP/1.1
  
  Response:
  
  {@code
  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  <message code="204" message="The template with uuid:contract-template-2007-12-04 was deleted successfully"/>
  }
  
  </pre>
  
  Example: <li>curl -X DELETE
  localhost:8080/sla-service/templates/contract-template-2007-12-04</li>
  
  @param id
  of the template
  @throws Exception