Repository navigation
v1.0.42
v1.0.42
🧹 Prune v0.12.0
A full audit of Prune against Open WebUI 0.11.3 and current dev turned up cleanups that could delete live data, and some that never worked at all on certain setups. Everything below was reproduced on both versions before the fix and verified end to end after it.
Heads-up: on Milvus multitenancy, a remote Chroma server and the slim image with pgvector, vector cleanup works for the first time, so the first run after updating can remove a large backlog of orphaned vectors. Shared folders of deleted users are now kept by default, and deleting an inactive user now also fires user.deleted, so webhooks for that event will see Prune's deletions.
Added
- Shared folders of deleted users are kept when a living user, an existing group or the public can still open them, with their subfolders. A new Keep shared ones option under folders (
exempt_shared_orphaned_folders) controls this and is on by default. Before, the folder was deleted and the other users' chats inside it dropped out of their sidebar.
Fixed
- Content created while a run was in progress could be deleted. A user who signed up during a run could lose the chats, notes, folders, models, knowledge bases and other content they had just created. Knowledge bases, files, memories and web pages added during the run could lose their embeddings. A file attached to a chat, knowledge base or channel during the run could be deleted.
- An upload that was still being written could lose its bytes, including Ollama model uploads.
orphan_file_grace_hoursnow also covers stored files, and 0 still means no protection. - Web pages attached to chats lost their vector data on every sweep, so a chat using focused retrieval stopped getting the page's content.
- A
route_prefixsuch as/api,/staticor/healthremoved Open WebUI's own routes and broke the instance. - With
ENABLE_MILVUS_MULTITENANCY_MODE, vector cleanup failed with a connection error, so orphaned vectors were never removed. - On the slim image with pgvector (Open WebUI 0.11.4 and newer), Prune never found the vector database and cleaned no vectors.
- With a remote Chroma server (
CHROMA_HTTP_HOST), orphaned collections were never cleaned. Prune now only touches collections named the way Open WebUI names its own. A manual VACUUM no longer creates an empty local Chroma file. - The notes, knowledge bases, models, folders and files of accounts deleted by the inactive-user check stayed until the server restarted. A full sweep now follows those deletions, within
full_sweep_interval_hours. - Files used only by chats, notes, channels or knowledge bases that the run itself deleted stayed until the next run. They now go in the same run.
- A cancelled or crashed run left models linked to knowledge bases that no longer exist. Every run now removes those links, whatever deleted the knowledge base.
- Leftover records that Open WebUI leaves behind are now removed:
- links to deleted files, and the folder structure of deleted knowledge bases (SQLite)
- members and webhooks of deleted channels
- attachments of deleted channel messages, which counted as in use forever (SQLite)
- thread replies whose thread parent is gone
- tags used only by chats deleted for age
- sharing grants of folders Prune deletes
- On SQLite, chats deleted together with their folder on Open WebUI 0.11.3 kept a working public share link. Those copies are now removed.
- The preview hid everything that deleting inactive users takes with them, counted chats and knowledge bases that are both old and orphaned twice, and counted some vector collections and search index entries twice. The preview and the run now agree. The README lists the few things the run frees beyond the preview.
- The status endpoint and startup log reported version 0.10.10.
Changed
- Deleting an inactive user now also deletes their memories and stored OAuth sign-ins, ends their open sessions and fires
user.deleted. If the memories or sign-ins cannot be deleted, the user is kept and retried on the next pass. - When the channel message age rule deletes an old thread parent, its replies go with it. A pinned thread parent keeps its newer replies.
- Disabling or deleting the function closes the Prune page and its API right away. Before, they kept working until a restart.
- The README now says that Open WebUI requires Redis for more than one worker, names the five preview rows that only show a count, and explains how to keep instances that share one vector database server apart.