code: public void handleDelete(HttpServletRequest request, HttpServletResponse response, String pathInContext, Resource resource) throws ServletException, IOException
      {
          if (!resource.exists() || !passConditionalHeaders(request, response, resource))
              return;
          try
          {
              // delete the file
              if (resource.delete())
              {
                  response.setStatus(HttpResponse.__204_No_Content);
                  response.flushBuffer();
              }
              else
                  response.sendError(HttpResponse.__403_Forbidden);
          }
          catch (SecurityException sex)
          {
              log.warn(LogSupport.EXCEPTION, sex);
              response.sendError(HttpResponse.__403_Forbidden, sex.getMessage());
          }
      }
docs: /* -------------------------------------------------------------------