code: public ModelAndView deleteRule(long id, HttpServletRequest request,
              HttpServletResponse response) throws IOException {
          String comment = "Deleted by REST client: "
                  + request.getHeader("User-agent");
          if (request.getHeader("Comment") != null) {
              comment = request.getHeader("Comment");
          }
  
          String user = "" + request.getRemoteUser() + "@"
                  + request.getRemoteAddr();
          if (request.getHeader("User") != null) {
              user = request.getHeader("User") + " via " + user;
          }
  
          Rule rule = ruleDao.getRule(id);
          if (rule != null) {
              RuleChange change = new RuleChange(rule, RuleChange.DELETED,
                      new Date(), user, comment);
              ruleDao.deleteRule(id);
              ruleDao.saveChange(change);
          }
          response.setStatus(204);
          return null;
      }
docs: DELETE /rules/:id
  
  Deletes the given rule.
  
  Optional extra headers: Comment - A comment that will appear in the
  change log. User - End-user who requested the change.
  
  @param id
  @param response
  @return
  @throws IOException