title: Create a bash script to delete folders which do not contain a certain filetype
body: <p>I have recently run into a problem.</p>
  
  <p>I used a utility to move all my music files into directories based on tags. This left a LOT of <em>almost</em> empty folders. The folders, in general, contain a thumbs.db file or some sort of image for album art. The mp3s have the correct album art in their new directories, so the old ones are okay to delete.</p>
  
  <p>Basically, I need to find any directories within D:/Music/ that:</p>
  
  <p>-Do not have any subdirectories</p>
  
  <p>-Do not contain any mp3 files</p>
  
  <p>And then delete them.</p>
  
  <p>I figured this would be easier to do in a shell script or bash script or whatever else linux/unix world than in Windows 8.1 (HAHA).</p>
  
  <p>Any suggestions? I'm not very experienced writing scripts like this.</p>