remove
remove(
path,options?):Promise<void>
Defined in: plugins/fs/guest-js/index.ts:877
Removes the named file or directory.
If the directory is not empty and the recursive option isn’t set to true, the promise will be rejected.
string | URL
Promise<void>
import { remove, BaseDirectory } from '@tauri-apps/plugin-fs';await remove('users/file.txt', { baseDir: BaseDirectory.AppLocalData });await remove('users', { baseDir: BaseDirectory.AppLocalData });2.0.0
© 2025 Tauri Contributors. CC-BY / MIT