@newspapper/core
    Preparing search index...

    Function purgeFeedItems

    • Delete items whose fetched_at is older than the retention window, except each source's newest keepPerSource in timeline (sort_at) order, so a quiet feed never empties. Saved items live on in articles, so purging one loses nothing. Returns how many rows were deleted.

      Parameters

      Returns number