title: How to delete all files and folders that are not image in a folder?
body: <p>Do you know how to delete all files that are not image files (.png, .jpg, etc.) and all folders which does not contain image files?</p>
  
  <p>By command line or shell script, is it possible?</p>
  
  <p>Note: I am using Mac terminal</p>