MainspringGuides › Hide desktop icons
macOS Guide

Hide all desktop icons on Mac

Updated 2026 · 3 min read

A clean desktop makes your wallpaper look better in presentations and screenshots, and removes visual clutter from your everyday view. You can hide every icon on the Desktop with one Terminal command — nothing gets deleted, and you can bring everything back in seconds.

The command

Open Terminal (Applications → Utilities) and run:

# hide all desktop icons (files stay in ~/Desktop, just invisible)
defaults write com.apple.finder CreateDesktop -bool false
killall Finder

Finder restarts and the desktop goes blank. Every file that was there is still in your ~/Desktop folder — it's just not rendered on screen. Open a Finder window and navigate to Desktop to access them.

Bring them back

# restore desktop icons
defaults write com.apple.finder CreateDesktop -bool true
killall Finder

All your icons reappear exactly where they were.

One click in Mainspring

Mainspring includes a Hide desktop icons toggle — flip it on before a presentation, flip it off when you want your files back. No commands to remember, no chance of a typo restarting Finder unexpectedly.

Try Mainspring free →

Signed & notarized by Apple · 1-day free trial · $29 once

What this affects

The CreateDesktop key tells Finder whether to render the Desktop as a file-system view. Setting it to false hides:

It does not affect the wallpaper, Dock, or menu bar. External drives are still accessible via Finder's sidebar; they just don't appear as icons on the desktop.

Hiding specific icons instead

If you only want to hide external drives or disks (not your own files), go to Finder → Settings → General and uncheck Hard disks, External disks, CDs, DVDs, and iPods, and Connected servers. This gives you a clean desktop while keeping your personal desktop files visible.