F

removeFile

Removes a file or a whole folder within documentsPath.

function removeFile(path: string): Promise<boolean>

Parameters

NameTypeDescription
pathstring

The path to remove, relative to documentsPath.

Returns

Promise<boolean>

A promise resolving to whether anything was removed.