Cordova remove file
I got it works :
function del() {
window.resolveLocalFileSystemURL(cordova.file.externalDataDirectory, function (dir) {
dir.getFile("log1.txt", {create: false}, function (fileEntry) {
fileEntry.remove(function (file) {
alert("file removed!");
}, function (error) {
alert("error occurred: " + error.code);
}, function () {
alert("file does not exist");
});
});
});
}
Thanks