mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[PR #15842] [MERGED] fix: deleting files from vector DB upon file deletion #39588
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/15842
Author: @expruc
Created: 7/18/2025
Status: ✅ Merged
Merged: 7/19/2025
Merged by: @tjbck
Base:
dev← Head:fix/handle_remove_files_from_vdb📝 Commits (1)
30a079cadded handler for deleting files from vdb upon files deletion📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/files.py(+3 -1)📄 Description
Pull Request Checklist
Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.
Before submitting, make sure you've checked the following:
devbranch.Changelog Entry
Description
This PR handles deleting files from vector DB using the file deletion API (
/api/v1/files/all and /api/v1/files/{id}). Previously, deleting files from delete files API didn't delete the entries from the vector DB (chroma/external one), which is now fixed.Fixed
Additional Information
<prefix>_file-{id}) from the vector DBI have tested this with both qdrant and chroma vector DB. The following works with uploading/deleting files from both UI and API as expected.
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.