title: Clear data present in files folder of the app
body: <p>In my app, I am downloading some files. It gets automatically saved in <code>data/data/project/files</code> folder. Below code is used for that purpose.</p>
  
  <pre><code>URL url = new URL(audioUrl);
  URLConnection urlConnection = url.openConnection();  
  InputStream inputStream = urlConnection.getInputStream();
  byte[] buffer = new byte[inputStream.available()];
  FileOutputStream fos = openFileOutput(fileName, Context.MODE_PRIVATE);
  
  int j;
  while((j = inputStream.read(buffer))!=-1)
  {
      fos.write(buffer, 0, j);
  }
  fos.close();
  </code></pre>
  
  <p>What I require is: before adding anything to this folder i want to clear all files if any are present. How can I do that? Please reply. Thanks in advance.</p>