remove
이 콘텐츠는 아직 번역되지 않았습니다.
Module @netwiv/api/plugins/fs · Kind Function
import { remove } from '@netwiv/api/plugins/fs';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.
Signature
Section titled “Signature”function remove(path: string | URL, options?: RemoveOptions | undefined): Promise<void>Example
Section titled “Example”import { remove, BaseDirectory } from '@netwiv/api/plugins/fs';await remove('users/file.txt', { baseDir: BaseDirectory.AppLocalData });await remove('users', { baseDir: BaseDirectory.AppLocalData });Upstream since 2.0.0
Descriptions come from the pinned @tauri-apps/plugin-fs@2.5.2 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.