title: Java delete file/directory equivalent of linux "rm -rf /tmp/garbagedir*"
body: <p>Given a bunch of tmp directories and tmp files like this:</p>
  
  <pre><code>/tmp/garbagedir1/
  /tmp/garbagedir2/
  /tmp/garbagedir3/
  /tmp/deleteme.txt
  /tmp/deleteme.log
  </code></pre>
  
  <p>In Linux, we can execute one simple shell command to recursively force delete all of these:</p>
  
  <pre><code>$ rm -rf /tmp/garbagedir* /tmp/deleteme*
  </code></pre>
  
  <p>All of the above files and directories are deleted, including all the files that may be in the directories.  All other files in the /tmp directory are not touched.</p>
  
  <p>There are many ways to do this in Java, but what is the simplest way that does not involve lots of Java style boilerplate code and still be platform independent?</p>