use std::fs; fn main() -> std::io::Result<()> { fs::remove_file("example.txt")?; println!("File deleted successfully!"); Ok(()) }