cacache_sync/content/
rm.rs1use std::fs;
2use std::path::Path;
3
4use ssri::Integrity;
5
6use crate::content::path;
7use crate::errors::{Internal, Result};
8
9pub fn rm(cache: &Path, sri: &Integrity) -> Result<()> {
10 fs::remove_file(path::content_path(cache, sri)).to_internal()?;
11 Ok(())
12}