FileManagertrashFile

FileManager.trashFile() method

Remove a file or a folder from the vault according the user’s preferred ‘trash’ options (either moving the file to .trash/ or the OS trash bin).

Signature:

trashFile(file: TAbstractFile): Promise<void>;

Parameters

ParameterTypeDescription
fileTAbstractFile

Returns:

Promise<void>