Function: deleteFile()
ts
function deleteFile(filePath): Promise<boolean>;Delete one output file. On Android, only files inside the library's own output directories can be deleted; other paths resolve false.
Parameters
| Parameter | Type | Description |
|---|---|---|
filePath | string | Absolute path of the file, as returned by another API. |
Returns
Promise<boolean>
true when the file was deleted (or, on Android, did not exist).
Throws
Error synchronously when filePath is empty.