Method PruneAsync
PruneAsync(IngestionSource, string?, CancellationToken)
Full enumeration and sweep, no write phase. The answer to "a budgeted run never prunes" (spec 9.6).
Task<int> PruneAsync(IngestionSource source, string? collectionName = null, CancellationToken cancellationToken = default)
Parameters
sourceIngestionSourceThe source whose live document ids define what is NOT stale.
collectionNamestringNull resolves to the single configured collection.
cancellationTokenCancellationTokenCancels the sweep.