Skip to content

Vault.trash method

Vault › trash

Official

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>

Since: 0.9.7