pub fn delete_if_exist(filename: &str) -> Result<(), Box<dyn Error>>
Deletes a file if it exists.
filename
Returns Err if there is an error accessing the file or deleting it.
Err