Last Updated: October 11, 2021
·
562
· deepflame

Recursively delete empty directories

Before I used a Ruby script to achieve the same.

Now I found this:

find . -type d -empty -delete

Much cleaner and simpler. Saves me a lot of time.