remove

Macro remove 

Source
macro_rules! remove {
    ($path:expr) => { ... };
}
Expand description

can be used to remove file or folder

 match  remove!("./test.txt"){
     Ok(_r)=>{
         println!("done");
     },
     Err(_e)=>{}
 }