title: How to delete directory content in Java?
body: <p>After enumerating a directory, I now need to delete all the files.</p>
  
  <p>I used: </p>
  
  <pre><code>final File[] files = outputFolder.listFiles();
  files.delete();
  </code></pre>
  
  <p>But this hasn't deleted the directory.     </p>