Skip to main content

run_clear

Function run_clear 

Source
pub fn run_clear(
    target: &str,
    over_cap: bool,
    unused: bool,
    yes: bool,
    dry_run: bool,
    json_output: bool,
) -> Result<()>
Expand description

Run dev-prune caches clear <target>.

target is a manager name or all. Everything about to be emptied is named and sized first, and unless --yes answers for the user, it asks. over_cap narrows the selection to managers that have outgrown their cache_max_gb entry, and unused to managers no registered repository uses at all.