[GH-ISSUE #23699] feat: Option to automatically clear down files uploaded in chats after period of chat inactivity #35577

Closed
opened 2026-04-25 09:45:50 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @hades200082 on GitHub (Apr 14, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23699

Check Existing Issues

  • I have searched for all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

Verify Feature Scope

  • I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions.

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:

  • How often the task runs
  • How long chats should have been untouched for to be considered "stale"

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

Originally created by @hades200082 on GitHub (Apr 14, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/23699 ### Check Existing Issues - [x] I have searched for all existing **open AND closed** issues and discussions for similar requests. I have found none that is comparable to my request. ### Verify Feature Scope - [x] I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions. ### 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: - How often the task runs - How long chats should have been untouched for to be considered "stale" 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_
Author
Owner

@Classic298 commented on GitHub (Apr 14, 2026):

The Thirtieth duplicate.

https://github.com/Classic298/prune-open-webui

<!-- gh-comment-id:4243127652 --> @Classic298 commented on GitHub (Apr 14, 2026): The Thirtieth duplicate. https://github.com/Classic298/prune-open-webui
Author
Owner

@Classic298 commented on GitHub (Apr 14, 2026):

PLEASE search for issues. Please use the search before opening

<!-- gh-comment-id:4243135792 --> @Classic298 commented on GitHub (Apr 14, 2026): PLEASE search for issues. Please use the search before opening
Author
Owner

@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.

<!-- gh-comment-id:4243471153 --> @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.
Author
Owner

@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

<!-- gh-comment-id:4243643247 --> @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
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#35577