Function async_fs::remove_dir_all
source · [−]Expand description
Removes a directory and all of its contents.
Errors
An error will be returned in the following situations:
path
is not an existing and empty directory.- The current process lacks permissions to remove the directory.
- Some other I/O error occurred.
Examples
async_fs::remove_dir_all("./some/directory").await?;