Deleted picture still visible in gallery. How to delete the file permantely?


#1

I have used the below code to delete file from the gallery. While deleting action take place, it will not delete the file from the gallery. How to delete the file permanently from gallery?

 $cordovaFile.removeFile(cordova.file.dataDirectory, "some_file.txt")
      .then(function (success) {
        // success
      }, function (error) {
        // error
      });

Thanks in advance.