Skip to content

FileSystemAdapter.trash method

FileSystemAdapter › trash

Unofficial

Moves a file to the OS trash via IPC (desktop only).

Signature:

trash(fullPath: string): boolean

Parameters:

Parameter Type Description
fullPath string The absolute file-system path to trash.

Returns: booleanWhether the file was successfully trashed.