Delete function on image gallery


I’ve read this article to make a custom image gallery ( …but i dont see how to implement a delete function to this custom image gallery.

There anybody to do this or any example ?!?

Thanks in advance
Igor Nesralla Ribeiro

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

Note: prepend “file://” to the_path