Delete Image from gallery


#1

I need to add an option to my app to delete a photo after selecting it from the gallery. How should I go about implementing this with ionic / cordova / angularjs setup??


#2

window.resolveLocalFileSystemURL(the_path, function (result) { result.remove(function(){ //removed }); });

Note: prepend “file://” to the_path


#3

For me it doesn’t work. I tested it on android. The method is completed succesfully, but the image is not removed from the gallery.
Any suggestion?