mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #14767] issue: #17359
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?
Originally created by @TheMoye on GitHub (Jun 7, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14767
Check Existing Issues
Installation Method
Pip Install
Open WebUI Version
v0.6.13
Ollama Version (if applicable)
v0.9.0
Operating System
Windows 11
Browser (if applicable)
Firefox 139.0.1
Confirmation
README.md.Expected Behavior
When a Knowledge Base is deleted via the OpenWebUI interface, all associated uploaded documents should be removed from the data/uploads folder. Furthermore, all vectors (embeddings) generated from these documents and stored in the data/vector_db folder should be deleted.
Similarly, when individual documents are deleted from a Knowledge Base via the interface, their corresponding files should be removed from data/uploads and their associated vectors from data/vector_db.
Ideally, any modification to a Knowledge Base's parameters (such as "chunk" size) should trigger a re-generation and update of existing vectors (without creating duplicates), or provide an explicit "rebuild" option for the index.
Actual Behavior
When I delete a Knowledge Base in OpenWebUI, a green success notification appears, but the source documents in data/uploads and their associated vectors in data/vector_db are not removed and remain on disk.
The same behavior occurs when I delete individual documents within a Knowledge Base: a green success notification appears, but the files and their vectors are not deleted from the aforementioned folders.
Moreover, I observed that by opening and "saving" (without modification) each document within the Knowledge Base editor after adjusting the "chunk" size, the size of the data/vector_db folder nearly doubled. This suggests that new vectors were generated and added alongside existing ones for the same documents, instead of updating or replacing them, leading to an accumulation of redundant data.
My setup uses Ollama for embedding models (bge-m3:567m).
I think this is the same issue as here: https://github.com/open-webui/open-webui/issues/13718
Steps to Reproduce
Logs & Screenshots
No specific error logs are generated during these actions. The UI displays success messages.
Additional Information
No response