Skip to main content

remove

Function remove 

Source
pub fn remove(path: impl AsRef<Path>) -> Result<()>
Available on crate feature fs only.
Expand description

Remove path as either a file or empty directory.

No-op if the path does not exist. Error if the path is a non-empty directory.