Over a million developers have joined DZone.

Delete Empty Directories

DZone's Guide to

Delete Empty Directories

Free Resource

// commands to recursively delete empty directories below the current one
// (use at your own risk, as the slightest mistake WILL destroy 
// all of your data - Linux) 
find -depth -type d -empty -exec rmdir {} \;


Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}