Guides / Empty folders

How to find empty folders on Mac

macOS has no menu command that lists empty folders, but one Terminal command does: find ~/Documents -type d -empty prints every empty folder inside Documents, and Finder can show how many items each folder holds. The quickest way is Everything Locator: search empty:, then Move Empty Folders to Trash (⌃ ⌘ ⌫) clears the safe ones in one step.

Works on macOS 15 and later. Updated December 2026.

1. Everything Locator: empty: and Move Empty Folders to Trash

Everything Locator (free to try) keeps an index of every file and folder name on the Mac. Type empty: in the search field and the list shows the folders that have no files and no subfolders. The app checks each folder on disk for this search, not only its index, so a folder that was filled a moment ago does not show up as empty. empty: combines with the rest of the search syntax:

SearchFinds
empty:every empty folder in the indexed folders
empty: ~/Documents/empty folders anywhere inside Documents
empty: parent:~/Downloadsempty folders directly in Downloads, not deeper
empty: dm:<2026empty folders last changed before 2026
empty: "untitled folder"empty folders still called untitled folder, the name Finder gives a new folder
empty: !~/Library/empty folders outside your Library folder

To delete them, run a search that starts with empty: and choose Move Empty Folders to Trash, or press ⌃ ⌘ ⌫. The app lists what it will move and what it keeps before anything happens. It keeps the folders that are risky to remove: the folders you chose to index, the standard home folders, everything in ~/Library, cloud folders, hidden folders, folders inside apps and packages, and folders changed in the last 24 hours. The rest go to the Trash, not straight off the disk, and ⌘ Z puts them all back. The command is part of the 14-day trial and of the one-time purchase.

To remove folders one at a time, select a result and press ⌘ ⌫; ⌘ Return shows it in Finder first. Folders under ~/Library and dot-folders appear in the results only when Include hidden files is turned on in Settings › Indexing. For this job it is better left off, because those are the empty folders that apps expect to find. The rest of the syntax is in the Everything search syntax cheat sheet.

2. Terminal: find -type d -empty

The find command that comes with macOS has a test for this. -type d keeps folders only and -empty keeps the ones with nothing inside. These commands only read:

# every empty folder inside Documents
find ~/Documents -type d -empty

# the whole home folder, without hidden folders and without Library
find ~ -type d -empty -not -path "*/.*" -not -path "$HOME/Library/*" 2>/dev/null

# only the top two levels of Documents
find ~/Documents -maxdepth 2 -type d -empty

Searching the home folder prints Operation not permitted for folders macOS protects, such as the Photos library; 2>/dev/null hides those lines. Expect many results inside project folders such as node_modules, which are not yours to tidy. For the folders that are, how to organize files on Mac covers folders, names and tags.

To delete what the first command found, add -delete at the end:

# deletes every empty folder inside one folder, for good
find ~/Documents/Archive -type d -empty -delete

-delete does not use the Trash and cannot be undone. Run the command without -delete first and read the list, and point it at one folder you know, never at ~ or ~/Library.

-delete works from the deepest folders up, so a folder that held nothing but empty folders is removed in the same run. How to find files on Mac from the Terminal covers the other find tests.

3. Finder: show the number of items

Finder has no command that lists empty folders, but it can show how full each folder is while you look through one place, which is enough for a Desktop or a Documents folder.

  1. Open the folder and switch to icon view with ⌘ 1.
  2. Choose View › Show View Options (⌘ J) and select Show item info. The number of items now appears under each folder's name, so the ones that hold nothing stand out.
  3. Or use list view (⌘ 2): in Show View Options select Calculate all sizes, then click the Size column header. Folders with a size of zero sort together. A folder that holds only zero-byte files also lands there, so open it before you delete it.
  4. Select the empty folders and press ⌘ ⌫ to move them to the Trash.

Both options apply to the folder you are looking at, not to the folders inside it. To check a whole tree of folders, use the Terminal command or Everything Locator.

When a folder looks empty but is not

A folder can show nothing in Finder and still be skipped by find -empty. The usual reason is .DS_Store, a hidden file Finder creates to remember how a folder's window is arranged. To see what is really inside, list the folder in Terminal with its hidden files:

ls -la ~/Documents/Archive/Old

If the only entry besides . and .. is .DS_Store, the folder is empty for practical purposes, and moving it to the Trash in Finder takes the hidden file along. For other hidden files, press ⇧ ⌘ . in Finder to show them; see how to find hidden files on Mac.

Which empty folders are safe to delete

An empty folder holds no data, so deleting it frees almost no disk space. The reason to remove them is a tidier Documents or Downloads folder, and that sets the rule: delete the ones you made, leave the ones something else made.

Whatever you remove, move it to the Trash and empty the Trash later, once nothing has complained. Where to find the Trash on Mac covers Put Back.

If the goal is free space, empty folders are the wrong place to look. Start with how to find large files on Mac and how to find duplicate files on Mac.

FAQ

How do I find empty folders on a Mac?

Open Terminal and run find ~/Documents -type d -empty, with the folder you want to check in place of ~/Documents. In Finder, turn on Show item info in icon view to see how many items each folder holds. In Everything Locator, search empty:.

How do I delete all empty folders on a Mac at once?

In Terminal, find with -type d -empty -delete removes every empty folder inside the folder you name, permanently. In Everything Locator, Move Empty Folders to Trash (⌃ ⌘ ⌫) moves them to the Trash, keeps system, cloud and recently changed folders, and can be undone with ⌘ Z.

Is it safe to delete empty folders on a Mac?

Yes for empty folders you made yourself in Documents, Downloads or on the Desktop. Leave empty folders in ~/Library, inside apps and code projects, and the standard home folders such as Movies and Pictures, because macOS and apps expect them to exist.

Do empty folders take up space on a Mac?

Almost none. An empty folder holds no file data, so removing even thousands of them will not make a full disk noticeably less full. Deleting them is about order, not storage.

Why does a folder that looks empty not count as empty?

It usually holds a hidden file, most often .DS_Store, which Finder creates to store the folder's view settings. Run ls -la with the folder's path in Terminal to see everything inside it.

Clear empty folders in one step

Everything Locator lists every empty folder as you type empty: and moves the safe ones to the Trash, with undo.

Mac App Store