/elfeed-prune/ is a hack that allows you to remove items from the elfeed database. *Use at your own risk, elfeed was not designed to support this*.
[[https://github.com/skeeto/elfeed][elfeed]] is a powerful and customizable RSS reader for Emacs. It's performing well with thousands of entries stored in the database, thanks to the design choices that were made to implement it. However, removing entries [[https://nullprogram.com/blog/2013/11/26/][wasn't considered a use-case]] and elfeed doesn't provide such functionality.
This package provides the =elfeed-prune= command, which removes entries that match a predicate from the database. It messes with the internal database structure to remove entries. It's wise to make a backup of your ~/.elfeed folder, this package won't do it for you. Alternatively, export your database with [[https://codeberg.org/bram85/elfeed-export][elfeed-export]] first.
A predicate can be added to =elfeed-prune-predicates= or =elfeed-prune-keep-predicates=, which is a function that takes two parameters: an (elfeed) entry object and a feed object that corresponds to that entry.
Any predicate in =elfeed-prune-predicates= that returns =t= gets pruned, unless any predicate in =elfeed-prune-keep-predicates= returns =t= for that same entry.
Below there are some additional predicates that you could add, using scoring or tagging.