title: Android: How to remove files from External storage?
body: <p><img src="https://i.stack.imgur.com/fmrHa.png" alt="enter image description here" /></p>
  <p>I am implementing an application which generates and create files in External storage. How can I remove that?</p>
  <h2>Edit</h2>
  <p>I added following code and still I am getting the same problem. See my code below:</p>
  <pre><code>String fullPath = &quot;/mnt/sdcard/&quot;;
  System.out.println(fullPath);
  try{
      File file = new File(fullPath, &quot;audio.mp3&quot;);
      if(file.exists()){
          boolean result = file.delete();
          System.out.println(&quot;Application able to delete the file and result is: &quot; + result);
          // file.delete();
      }else{
          System.out.println(&quot;Application doesn't able to delete the file&quot;);
      }
  }catch (Exception e){
      Log.e(&quot;App&quot;, &quot;Exception while deleting file &quot; + e.getMessage());
  }
  </code></pre>
  <p>In the LogCat I am getting <strong>Application able to delete the file and result is:false</strong>. I attached my screen shot after executing this.</p>