mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #23699] feat: Option to automatically clear down files uploaded in chats after period of chat inactivity #35577
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 @hades200082 on GitHub (Apr 14, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23699
Check Existing Issues
Verify Feature Scope
Problem Description
Over time the uploads directory just keeps growing.
Many user chats are stale/no longer viewed/accessed after time.
This leads to a large amount of disk usage that isn't needed and can lead to "disk full" problems.
Desired Solution you'd like
An option in the admin to enable a scheduled task that can clear down old uploads from disk would help immensely. It should only clear down uploads that were attached directly to chats, not anything in the knowledge section.
The admin should be able to configure:
When the task runs it should delete the uploaded files from disk, but leave the chats alone so they are retained for history.
Alternatives Considered
Couldn't think of any. The "Reset upload directory" option also clears out knowledge so doesn't work for this.
Additional Context
No response
@Classic298 commented on GitHub (Apr 14, 2026):
The Thirtieth duplicate.
https://github.com/Classic298/prune-open-webui
@Classic298 commented on GitHub (Apr 14, 2026):
PLEASE search for issues. Please use the search before opening
@hades200082 commented on GitHub (Apr 14, 2026):
This is not a duplicate, and that tool does not resolve this.
I'm not asking for a separate CLI tool that I have to run manually. I'm asking for a built-in scheduled job that can be enabled within Open WebUI itself to prune the ad-hoc uploaded files.
@Classic298 commented on GitHub (Apr 14, 2026):
Yes this is a duplicate because this exact thing has been asked thirty times so far. Use the search.
You CAN schedule the tool and dont have to run it manually. Look into it.
And the tool does exactly what you described