Delete directories only and not files in a directory on Linux

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

Add comment