code: void handleDelete(HttpRequest request,
                        HttpResponse response,
                        String pathInContext,
                        Resource resource)
          throws IOException
      {
          if(log.isDebugEnabled())log.debug("DELETE "+pathInContext+" from "+resource);  
   
          if (!resource.exists() ||
              !passConditionalHeaders(request,response,resource))
              return;
   
          try
          {
              // delete the file
              if (resource.delete())
                  response.setStatus(HttpResponse.__204_No_Content);
              else
                  response.sendError(HttpResponse.__403_Forbidden);
  
              // Send response
              request.setHandled(true);
          }
          catch (SecurityException sex)
          {
              log.warn(LogSupport.EXCEPTION,sex);
              response.sendError(HttpResponse.__403_Forbidden, sex.getMessage());
          }
      }
docs: /* ------------------------------------------------------------