Over a million developers have joined DZone.

Delete Empty Directories

·

// 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 {} \;

Topics:

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

{{ parent.tldr }}

{{ parent.urlSource.name }}