Function tauri_wasm::plugin::fs::remove_dir

source ·
pub async fn remove_dir(dir: &Path, base_dir: BaseDirectory) -> Result<()>
Expand description

Removes a directory. If the directory is not empty the promise will be rejected.

§Example

use tauri_wasm::plugin::fs;

fs::remove_dir(path, BaseDirectory::Download).expect("could not remove directory");

Requires plugins > fs > removeDir to be enabled.