FileSystemManager.unlink(Object object)
Deletes files
Parameters
Object object
| Attribute | Type | Default | Required | Description |
| filePath | string | | Yes | Path to the file to be deleted |
| success | function | | No | The callback function for a successful API call |
| fail | function | | No | Callback function for failed API call |
| complete | function | | No | Callback function used when API call completed (always executed whether call succeeds or fails) |
object.fail callback function
Parameters
Object res
| Property | Type | Description |
| errMsg | string | Error message |
Valid values of res.errMsg
| Value | Description | Minimum Version |
| fail permission denied, open ${path} | No read permission on the specified path | |
| fail no such file or directory ${path} | File does not exist | |
| fail operation not permitted, unlink ${filePath} | The passed filePath is a directory | |