title: Delete all folders older than X days using Shell
body: <p>my backups are stored in folders. e.g </p>
  
  <pre><code> **05092013** &gt; 
   - File1.sql
   - File2.sql
   - File1.tar
   - File2.tar
  </code></pre>
  
  <p>and so on.</p>
  
  <p><strong>Now I want to delete all Folders that are older than X Days.</strong></p>
  
  <p>I tried this</p>
  
  <pre><code>find $FILEDIR -mtime +14 -exec rm {} \;
  </code></pre>
  
  <p>but it only deletes all files and not the folders. how can i delete all files and folders that are older?</p>
  
  <p>can someone help me?</p>
  
  <p>Thx in advance cSGermany</p>