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:

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

Returns: Promise<void>

Since: 0.9.7