Show issue while deleting directory
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5701586/delete-a-folder-on-sd-card">Delete a folder on SD card</a>  </p>
</blockquote>



<p>In my app i saved all my data using internal storage i.e file. So at the first instance by using the <code>ContextWrapper cw = new ContextWrapper(getApplicationContext());</code> class i get the directory path as <code>m_AllPageDirectoryPath = cw.getDir("AllPageFolder", Context.MODE_PRIVATE);</code> Inside this directory path i saved some file File as Page01, page02, Page03 and so on.</p>

<p>Again inside Page01 i saved some file like image01, image02...using the same concept <code>m_PageDirectoryPath = cw.getDir("Page01", Context.MODE_PRIVATE);</code> Now on delete of m_AllPageDirectoryPath i want to delete all the file associate with it. I tried using this code but it doesn't work.</p>

<pre><code>File file = new File(m_AllPageDirectoryPath.getPath()); 
file.delete();
</code></pre>
