From b1c874698469ac999d210cd8cde59425781e4da2 Mon Sep 17 00:00:00 2001 From: liuzhenghua <1090179900@qq.com> Date: Tue, 6 May 2025 19:30:42 +0800 Subject: [PATCH] fix: After the file is deleted, it still remains in the bucket. (#7482) ### What problem does this PR solve? Fix: After deleting the file from the file management menu, it was not removed from the MinIO bucket. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): Co-authored-by: liuzhenghua-jk --- api/apps/file_app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/apps/file_app.py b/api/apps/file_app.py index ff78198c4..e06c9650c 100644 --- a/api/apps/file_app.py +++ b/api/apps/file_app.py @@ -257,6 +257,7 @@ def rm(): STORAGE_IMPL.rm(file.parent_id, file.location) FileService.delete_folder_by_pf_id(current_user.id, file_id) else: + STORAGE_IMPL.rm(file.parent_id, file.location) if not FileService.delete(file): return get_data_error_result( message="Database error (File removal)!")