title: How to delete only directories and leave files untouched
body: <p>I have hundreds of directories and files in one directory.</p>
  
  <p>What is the best way deleting only directories (no matter if the directories have anything in it or not, just delete them all)</p>
  
  <p>Currently I use <code>ls -1 -d */</code>, and record them in a file, and do <code>sed</code>, and then run it. It rather long way. I'm looking for better way deleting only directories</p>