Over a million developers have joined DZone.

Delete Empty Directories (UNIX)

DZone's Guide to

Delete Empty Directories (UNIX)

· ·
Free Resource
// Shell command to delete empty directories. May have to run several times to get everything.

find . -type d -empty | xargs rmdir -

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}