kernel_clean

Function kernel_clean 

Source
pub fn kernel_clean(
    keep: Option<usize>,
    force: bool,
    corrupt_only: bool,
) -> Result<()>
Expand description

Remove cached kernels with optional keep-N and confirmation prompt.

corrupt_only = true narrows removal to ListedEntry::Corrupt (metadata missing or unparseable, image file absent); valid entries are left untouched regardless of keep / force.

keep = Some(N) retains the N newest valid entries.