cap_primitives::fs
pub fn unlink(start: &File, path: &Path) -> Result<()>
Perform a unlinkat-like operation, ensuring that the resolution of the path never escapes the directory tree rooted at start.
unlinkat
start