<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`Vault`](Vault) › [`trash`](Vault/trash) ## Vault.trash() method Tries to move to system trash. If that isn't successful/allowed, use local trash **Signature:** ```typescript trash(file: TAbstractFile, system: boolean): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>file</code> | [`TAbstractFile`](TAbstractFile) | The file or folder to be deleted | | <code>system</code> | <code>boolean</code> | <p>Set to <code>false</code> to use local trash by default.</p><p> 0.9.7</p> | **Returns:** `Promise<void>`