mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-17 08:21:12 -05:00
[PR #8516] [CLOSED] refac: file removal should use delete_file_by_id #61096
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/8516
Author: @juananpe
Created: 1/13/2025
Status: ❌ Closed
Base:
dev← Head:refactor-file-removal📝 Commits (1)
46991f3refac: file removal should use delete_file_by_id function for consistency📊 Changes
1 file changed (+4 additions, -8 deletions)
View changed files
📝
backend/open_webui/routers/knowledge.py(+4 -8)📄 Description
Pull Request Checklist
devbranch.Changelog Entry
file removal should use delete_file_by_id function for consistency
Description
This PR refactors the file removal mechanism in the knowledge router to improve consistency and maintainability.
Changes
remove_file_from_knowledge_by_idfunction is now asynchronous.delete_file_by_idfunction from theopen_webui.routers.filesmodule.Storageclass is no longer used directly for file deletion, reducing direct dependencies on the storage provider.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.