deleteLogsOlderThan

open suspend override fun deleteLogsOlderThan(retentionDays: Int)(source)

Prunes the log database based on the configured retentionDays. The sentinel values are resolved by MeshLogRetention, so "never delete" is a no-op and "1 hour" trims to the last hour rather than scaling the sentinel by days.

Each batch is its own DatabaseProvider.withDb call and write transaction, so writers queued on the database run between batches and cancellation stops the pass at a batch boundary.