Skip to main content

prune

Function prune 

Source
pub fn prune(
    conn: &Connection,
    keep: i64,
    days: i64,
    dry_run: bool,
    actor: Option<&str>,
) -> Result<PruneReport, String>
Expand description

Deletes, per stream, every snapshot that is both beyond the newest keep and older than days days, leaving a checkpoint so the rest still verifies. dry_run counts without touching anything.