foo-webview-sdk
    Preparing search index...

    Interface FileDeleteParams

    Parameters for file.delete. Delete a file or directory, to the Recycle Bin unless moveToTrash is false. A path that does not exist fails with NOT_FOUND.

    interface FileDeleteParams {
        moveToTrash?: boolean;
        path: string;
    }
    Index
    moveToTrash?: boolean

    Send it to the Recycle Bin. false deletes it permanently, which fails on a directory that is not empty.

    true
    
    path: string

    File or directory to delete.