Clean empty folder in MacOS

TL;DR:

find . -name .DS_Store -delete
find . -type d -empty -delete

Ref: https://apple.stackexchange.com/questions/79391/locate-empty-folders-within-a-folder#comment91730_79406

Leave a Reply

Your email address will not be published. Required fields are marked *