code: public void deleteUploadFile(HttpServletRequest request,
                                 UploadFile uploadFile) {
      try {
        String imageId = null;
        //首先先删除Session
       if (!UtilValidate.isEmpty(uploadFile.getTempId())) {
          imageId = uploadFile.getTempId();
          deleteUploadFileFromSession(request, imageId);
        }else  if (!UtilValidate.isEmpty(uploadFile.getId())) {
         imageId = uploadFile.getId();
         deleteUploadFileFromSession(request, imageId);
         imageFilter.deleteUploadFile(request, uploadFile);
        } else
          throw new Exception("parameter id  and tempId all is null");
  
      } catch (Exception ex) {
        Debug.logError("[JdonFramework] deleteUploadFile error:" + ex, module);
      }
  
    }
docs: 根据UploadFile的id删除UploadFile实例
  @param request
  @param id