empty folders

Trying to clean up my MBP, anyone know of an easy way to locate empty folders so I can trash them?

MacBook Pro 13", macOS 10.13

Posted on Feb 23, 2020 5:06 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 24, 2020 2:16 PM

Some scary but efficient Terminal Commands...

find . -type d -empty

I'd have a Backup before trying this one!


find . -type d -empty -delete


https://unix.stackexchange.com/questions/46322/how-can-i-recursively-delete-empty-directories-in-my-home-directory

9 replies

Feb 24, 2020 7:05 AM in response to Mike Lipay

Hi Mike...


Empty Folders

Mac

It's actually quite easy to find empty folders on your Mac. All you have to do is open Finder, then press Command + F to open Find. Under Kind, select Folder. Add another search criterion by pressing the + and choose Number of items, then set it to less than one.


https://operating-systems.wonderhowto.com/how-to/remove-empty-folders-duplicate-files-broken-shortcuts-and-old-bookmarks-from-your-computer-0140245/

Feb 24, 2020 1:23 PM in response to BDAqua

Turns out, for some reason, it doesn't work 100%. I did the search and it found 3 folders, thought that odd, but I delete them. I then went into the iTunes folder and looked at a couple folders, there was one called Unknown Artists, since I just spent time cleaning up my iTunes library I found it odd that that folder didn't show up, so I looked inside it. I found two folders, then I looked inside them, both were empty. I'm guessing the search only goes one-level deep.


Here's the search showing there are no folders that are empty:

Here's the search showing that the folders under Unknown Artist are empty:


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

empty folders

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.