mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 21:09:41 -05:00
[PR #8499] [MERGED] fix: complete file cleanup when removing from Knowledge Base #22236
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/8499
Author: @juananpe
Created: 1/12/2025
Status: ✅ Merged
Merged: 1/13/2025
Merged by: @tjbck
Base:
dev← Head:file-cleanup-knowledge📝 Commits (1)
913e0d3fix: complete file cleanup when removing from Knowledge Base📊 Changes
1 file changed (+13 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/knowledge.py(+13 -1)📄 Description
fix: complete file cleanup when removing from Knowledge Base
Pull Request Checklist
devbranch.Changelog Entry
Description
Currently, when removing a file from a Knowledge Base, the system only partially cleans up the resources. This PR implements a complete cleanup by:
Changed
remove_file_from_knowledge_by_idinbackend/open_webui/routers/knowledge.pyto:🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.