Using Ionic 3 File pkugin for removing images from device,
deleteFromDevice(data){
for(let i=0; i<data.rows.length; i++){
this.file.removeFile(data(i).location, data(i).picture).then(_ => console.log('deleted')).catch(err => console.log('cannot delete'));
}
}, (error) => {
console.log("Error: " + JSON.stringify(error.err));
});
}
Above function deletes images content but file remains on device with exclamation mark. Anyone familiar with this?