JavaScript
{dialog.object}phoneGapDeleteFileURL Method
Syntax
{dialog.object}.phoneGapDeleteFileURL(filepath,onDeleteSuccess,onError);
Arguments
- filepath
Local file URL of the desired file.
- onDeleteSuccess
A Javascript function that is called if the delete succeeds.
- onError
A Javascript function called if there is an error when trying to delete the file.
Description
Delete a file.
Example
var onDeleteSuccess = function() { alert("File was deleted"); }; var onError = function(e) { alert("An error occured when deleting the file!"); }; var filepath = {dialog.object}.phoneGapGetLocalDirURL('private') + 'file.txt'; {dialog.object}.phoneGapDeleteFileURL(filepath, onDeleteSuccess, onError);