Function tauri_sys::fs::remove_dir_all

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

Removes a directory and its contents.

§Example

use tauri_sys::fs;

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

Requires allowlist > fs > removeDir to be enabled.