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

Posted by Weston Ganger

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:

Article Topic:Software Development - Linux

Date:October 20, 2016

Recommended Posts



Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected