Linux

How To Recursively Find And Delete All Empty Directories In The Terminal

Posted by Weston Ganger on October 20, 2016

If you ever need to find and delete all empty directories from a project. Here a simple one-liner to do this


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


Related External Links:


Posted in Linux and Tagged with find 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts