When deleting the images on Android’s SD Card, sometimes the images are correctly removed but in the gallery still remains a preview of the removed image. When tapping on it
For each file while deleted use this
KITKAT
this worked for me
try { context.getContentResolver().delete( MediaStore.Images.Media.EXTERNAL_CONTENT_URI, MediaStore.Images.Media.DATA + "='" + new File(fileUri).getPath() + "'", null); } catch (Exception e) { e.printStackTrace(); }