Hide a messy Mac desktop instantly
Some desktops are past saving — a hundred screenshots, three folders you meant to sort, a scattering of downloads. You don't have time to file any of it, you just want it gone from view right now. macOS has no System Settings toggle for this, but one Terminal command hides every icon at once without moving, deleting, or renaming a single file.
The one command that clears everything
Open Terminal (Applications → Utilities → Terminal, or search for it with Spotlight) and run these two lines. The desktop is empty the moment Finder relaunches — no drag-selecting, no waiting.
# Hide the whole messy desktop
defaults write com.apple.finder CreateDesktop -bool false
killall Finder
That's it. Where a manual clean-up means minutes of dragging and second-guessing, this is instant and total. It doesn't matter whether you have twelve icons or twelve hundred — they all vanish together.
Your files didn't go anywhere
This is the part that makes hiding safe: nothing was touched. The CreateDesktop key simply tells Finder to stop drawing icons on the desktop layer. Every file is still in your Desktop folder, in the same place it always was. To open something while the desktop is hidden, use any of these:
- Open a Finder window and click Desktop in the sidebar.
- Choose Go → Home in Finder and open the Desktop folder.
- Search with Spotlight (
Cmd+Space) as normal — hidden icons don't affect search.
Because the files stay put, you can hide the mess today and deal with it whenever you actually feel like sorting.
Bring it back when you're ready to tidy
Reverse the change with the opposite value and a Finder relaunch. Every icon reappears in its original spot, mess and all, ready to organise properly.
# Show the desktop icons again
defaults write com.apple.finder CreateDesktop -bool true
killall Finder
This works the same on macOS 13 Ventura, 14 Sonoma, and 15 Sequoia. If you'd rather remove the custom value than write true, defaults delete com.apple.finder CreateDesktop plus killall Finder is equivalent.
New files land quietly while it's hidden
One thing to expect: while the desktop is hidden, anything new you save there — a screenshot, a download, a file dragged from Mail — goes into the Desktop folder without showing an icon. Nothing is lost; it's simply invisible until you switch the icons back on, at which point everything that arrived in the meantime appears together. That makes hiding a genuine "deal with it later" button: keep saving to the desktop as you always do, and the pile stays out of sight until you're ready. The setting also survives a restart, so a desktop you hid this morning stays hidden tomorrow until you decide to face it.
Hiding desktop icons lives only in the Terminal — Apple never built a settings switch for it. Mainspring turns it into a labelled one-click toggle you can flip whenever the desktop gets away from you, alongside 90+ other hidden macOS settings.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Or tidy instead of hide
If you'd rather the desktop actually organise itself, macOS can group everything into neat piles by type or date automatically — see how to use Desktop Stacks on Mac to turn the same clutter into a handful of tidy stacks.