diff --git a/backend/apps/webui/models/documents.py b/backend/apps/webui/models/documents.py index 16145c4ac..ac8655da9 100644 --- a/backend/apps/webui/models/documents.py +++ b/backend/apps/webui/models/documents.py @@ -158,6 +158,7 @@ class DocumentsTable: with get_db() as db: db.query(Document).filter_by(name=name).delete() + db.commit() return True except: return False