Skip to content

CapacitorAdapterFs.trash method

CapacitorAdapterFs › trash

Unofficial

Move a file to the system trash.

Signature:

trash(realPath: string): Promise<void>

Parameters:

ParameterTypeDescription
realPathstringFile path to trash.

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