Vault โ€บ trash

Vault.trash() method

Tries to move to system trash. If that isnโ€™t successful/allowed, use local trash

Signature:

trash(file: TAbstractFile, system: boolean): Promise<void>;

Parameters

ParameterTypeDescription
fileTAbstractFileThe file or folder to be deleted
systembooleanSet to false to use local trash by default.

Returns:

Promise<void>