Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix: After the file is deleted, it still remains in the bucket. (#7482)

liuzhenghuab1c874698469
diff --git a/api/apps/file_app.py b/api/apps/file_app.py
index ff78198c46..e06c9650cd 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)!")