kosa8 docs

Commands / kosa8 audit prune

kosa8 audit prune

Apply the retention policy now: seal old entries and remove them from the live log

Removes entries older than retention.max_age_days from the front of the live log, archiving them into sealed segments (or, with "mode": "delete", keeping only the seal). The chain still verifies afterwards: it resumes from an authenticated checkpoint of the last entry removed.

Never removes an entry a configured sink has not received, fewer than min_entries, anything younger than the org policy's minimum, or usage not yet reported for billing. The daemon applies retention hourly on its own.

Options

FlagTypeWhat it doesDefault
--dry-runboolreport what would be pruned without changing anything—