usecrate::{error::Result,packagedir::Packagedir };usestd::fs;/// Forcibly deletes a cached archive
pubfnexec<T>(name: T)-> Result where T:AsRef<str>{// Get the path to the cached archive
let packagedir =Packagedir::new()?;let path = packagedir.join(name.as_ref());// Delete the file
fs::remove_file(path)?;Ok(())}