Skip to content

CapacitorAdapterFs.trash method

CapacitorAdapterFs › trash

Unofficial

Move a file to the system trash.

Signature:

trash(realPath: string): Promise<void>

Parameters:

Parameter Type Description
realPath string File path to trash.

Returns: Promise<void>A promise that resolves when the file is trashed.