Function tauri_wasm::plugin::fs::remove_dir_all
source · pub async fn remove_dir_all(dir: &Path, base_dir: BaseDirectory) -> Result<()>
Expand description
Removes a directory and its contents.
§Example
use tauri_wasm::plugin::fs;
fs::remove_dir_all(path, BaseDirectory::Download).expect("could not remove directory");
Requires plugins > fs > removeDir
to be enabled.