Function async_delete_file

Source
pub async fn async_delete_file(path: &str) -> Result<(), Error>
Expand description

Asynchronously deletes a file at the given path.

§Arguments

  • &str - The file path to delete.

§Returns

  • Result<(), std::io::Error> - Ok if the file was deleted successfully, Err with error details otherwise.