Linux command – how to delete recursively empty directories

# cd /path/to/directory
# find . -type d -empty -delete

Leave a Reply

You must be logged in to post a comment.