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
Parameter | Type | Description |
---|---|---|
file | TAbstractFile | The file or folder to be deleted |
system | boolean | Set to false to use local trash by default. |
Returns:
Promise<void>