fn delete_paths_in_order( paths: &[PathBuf], delete_path: impl FnMut(&Path) -> Result<()>, ) -> Result<()>