title: Android: Deleted file but user data not free up. How can fix?
body: <p><a href="https://i.stack.imgur.com/NxELo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NxELo.png" alt="enter image description here" /></a>My app can get image add in to folder &quot;photo&quot; and delete it, but after deleted image in folder &quot;photo&quot;  user data not free up although i checked files explorer in android studio and log really deleted. I save the file in internal storage (app private storage) not external. How i can fix?</p>
  <pre><code>public class InternalStorageHelper {
  
  public static String saveToInternalStorage(Bitmap bitmapImage, Context context, String fileName) {
     
      File directory = new File(context.getApplicationInfo().dataDir, &quot;photo&quot;);
      if (!directory.exists()) {
          directory.mkdirs();
      }
      // Create imageDir
      File myPath = new File(directory, fileName+ &quot;.jpg&quot;);
      FileOutputStream fos = null;
      if (myPath.exists()) {
          myPath.delete();
      }
      try {
          fos = new FileOutputStream(myPath);
          // Use the compress method on the BitMap object to write image to the OutputStream
          bitmapImage.compress(Bitmap.CompressFormat.PNG, 100, fos);
      } catch (Exception e) {
          e.printStackTrace();
      }
      try {
          fos.close();
      } catch (IOException ioException) {
          ioException.printStackTrace();
      }
  
      return myPath.getAbsolutePath();
  }
  
  
  public static Bitmap loadImageFromStorage(String path) {
      try {
          File f = new File(path);
  
          Bitmap b = BitmapFactory.decodeStream(new FileInputStream(f));
          return b;
      } catch (FileNotFoundException e) {
          e.printStackTrace();
      }
      return null;
  }
  
  public static void deleteFile(String path) {
      File fdelete = new File(path);
      if (fdelete.exists()) {
          if (fdelete.delete()) {
              Log.d(&quot;progress&quot;, &quot;file Deleted :&quot; + path);
          } else {
              Log.d(&quot;progress&quot;, &quot;file not Deleted :&quot; + path);
          }
      }
  }
  </code></pre>
  <p>}</p>