title: Delete particular files in all subdirectories of a directory in linux
body: <p>I want to delete all the audio files which are not in ".wav" format from a directory and all its sub-directories.</p>
  
  <p>My script here doesn't work-</p>
  
  <pre><code>for file in /home/deepthought/Music/genres/*/; do rm $file not in *.wav; done
  </code></pre>
  
  <p>What should be the correct routine?</p>