v2 icon indicating copy to clipboard operation
v2 copied to clipboard

How to remove feeds older than given time / set maximum number of entries stored?

Open Mati20187 opened this issue 2 years ago • 2 comments

Hi, I was wondering if it is possible to remove feeds older than, let's say, 1 year (or even better, not fetch such feeds at all). There's probably a way to do it through PostgreSQL but I'm an absolute noob when it comes to databases and would like to avoid it as much as possible. Thanks in advance!

Mati20187 avatar Jan 13 '22 16:01 Mati20187

Also, is it possible to set the maximum number of entries stored by Miniflux? I'd like to limit the number of entries to e.g. 1000 and after that the oldest entries would be replaced by new ones. I think this is the best way of making sure that Miniflux doesn't take up too much disk space.

Mati20187 avatar Jan 13 '22 17:01 Mati20187

Not aware of any way to clean up based on number of entries, but there exist several configs that allow you to define an expiration for older articles: https://miniflux.app/docs/configuration.html#cleanup-frequency-hours

Notably, CLEANUP_ARCHIVE_READ_DAYS and CLEANUP_ARCHIVE_UNREAD_DAYS would allow you to define 1 year or so, at which point any item older than that would be removed.

Presumably disk space usage will be defined and driven by the actual content stored, as well, so it would vary from feed to feed, fwiw.

tomswartz07 avatar Jan 25 '22 18:01 tomswartz07