Skip to content

FileSystemManager.unlinkSync ​

JS
    FileSystemManager.unlinkSync(string path)

Delete a file

The synchronous version of FileSystemManager.unlink

Parameters

  • string filePath: Path of the file to delete

Parameters of the captured exception

  • string error: Returns the error message; see the table below for valid values

Valid values of error:

Error messageDescription
no such file or directoryThe file does not exist