Linux – Remove all empty folders

So yeah, Got a lot of empty folders? Want to get rid of them? run this in a folder with empty subfolders!

find -depth -type d -empty -exec rmdir {} \;

Leave a Reply