If you need to delete all the directories only and not files in a directory in Linux, you can do it with the “rm -r */” command

  • By: Andrew Kirkpatrick
  • In: Linux
  • Under: