pub fn clean(
keep: usize,
only: Option<&str>,
dry_run: bool,
) -> Result<CleanReport>Expand description
Keep the keep most recent entries in each producer’s directory and remove
the rest.
only restricts it to one producer. The producer directories themselves are
never removed: a producer with nothing left in it is an empty directory, not
an absence, and deleting it would make tomorrow’s run recreate it.