}
@RequestMapping(value="/delete-action", method=RequestMethod.GET)
@Permission(value={"file-edit"}, userRequired=true)
public String doDeleteAction(@RequestParam Long fileId, WebRequest request) {
File file = fileService.getFile(fileId);
String uniqueId = file.getFolder().getProject().getUniqueId();
Long folderId = file.getFolderId();
//
syncSessionFileList(file, request, Boolean.TRUE);
//
AttachmentUtil.delete(file.getRealFile());
attachmentService.deleteAttachment(file.getRealFileId());
fileService.deleteFile(fileId);
return String.format("redirect:/%s/document/file/list?folderId=%s", uniqueId, folderId);
}