Skip to content

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 ​

ParameterTypeDescription
filePathstringAbsolute 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.

Released under the MIT License.