<!-- Do not edit this file. It is automatically generated by API Documenter. --> [`FileManager`](FileManager) › [`trashFile`](FileManager/trashFile) ## FileManager.trashFile() method Remove a file or a folder from the vault according the user's preferred 'trash' options (either moving the file to .trash/ or the OS trash bin). **Signature:** ```typescript trashFile(file: TAbstractFile): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | <code>file</code> | [`TAbstractFile`](TAbstractFile) | 1.6.6 | **Returns:** `Promise<void>`