deleteOlderThan

abstract suspend fun deleteOlderThan(cutoffTimestamp: Long, limit: Int): Int(source)

Deletes at most limit logs received before cutoffTimestamp and returns how many it removed. Callers repeat it until it removes fewer than limit, so a retention pass never holds the write lock for the whole backlog.