foo-webview-sdk
    Preparing search index...

    Interface FileDeleteAsyncParams

    Parameters for file.deleteAsync. Start a cancellable batch delete, with the same receipt and events as file.copyAsync; its results carry no destination. Recycle Bin deletes run on the main thread in batches of 16, permanent deletes on a worker thread.

    interface FileDeleteAsyncParams {
        moveToTrash?: boolean;
        paths: string[];
    }
    Index
    moveToTrash?: boolean

    Send each entry to the Recycle Bin. false deletes permanently and removes directories that are not empty, which the synchronous file.delete refuses to do.

    true
    
    paths: string[]

    Paths to delete, reported one result each, in this order. An entry that is not a string fails the call with INVALID_PARAMS. Every path is checked for writing before anything starts; one refused path, an empty string included, fails the whole call with PERMISSION_DENIED and no operationId.