Hide or Remove Desktop Icons on Mac (Step-by-Step)
In this article
You can hide or remove desktop icons on your Mac using built-in Finder settings or Terminal commands. The quickest way is to use Finder's View menu to hide all icons at once, or drag individual icons to the Trash to delete them. No extra software is needed.
What You'll Need
- Your Mac (any model running macOS)
- Administrator access (only if you use Terminal commands)
Step-by-Step
Option 1: Hide All Desktop Icons (Quickest)
- Click anywhere on your desktop to make sure Finder is active.
- In the menu bar at the top of the screen, click View.
- Select Hide Desktop Icons from the dropdown menu. All icons on your desktop will disappear immediately.
- To bring them back, click View again and choose Show Desktop Icons.
Note: Menu labels can vary slightly depending on your macOS version, but the option is always under the View menu in Finder.
Option 2: Remove Individual Icons (Delete or Move)
- Click once on the icon you want to remove to select it.
- To delete it permanently, press Command + Delete on your keyboard, or drag the icon to the Trash in your Dock.
- If you want to keep the file but just move it off the desktop, drag it into a folder (like Documents or Downloads) in the Finder sidebar.
- Empty the Trash to permanently erase the file (right-click the Trash icon and select Empty Trash).
Deleting an icon deletes the actual file or shortcut. If it's a shortcut (alias), only the shortcut is removed.
Option 3: Hide Only Certain Icons (Using Terminal – Advanced)
- Open Terminal from Applications > Utilities.
- Type the following command and press Enter:
defaults write com.apple.finder CreateDesktop -bool false - Restart Finder by typing
killall Finderand pressing Enter. All desktop icons will hide. - To show them again, run:
defaults write com.apple.finder CreateDesktop -bool trueand thenkillall Finder.
This method hides all icons, including external drives and mounted volumes. Use it if the View menu option isn't available on your macOS version.
Common Mistakes
- Deleting instead of hiding: Using Command+Delete permanently removes the file. If you only want to hide it, use the View menu or move the file to a folder.
- Forgetting to empty the Trash: The file still takes up space until you empty the Trash.
- Typing Terminal commands incorrectly: A typo can cause errors. Copy and paste the command exactly as shown.
- Hiding external drive icons accidentally: The View menu option hides all icons, including connected drives. If you only want to hide files, not drives, use the Terminal method with a different setting (see Troubleshooting).
Tips
- Use Stacks (Control-click on desktop > Use Stacks) to group files into neat piles instead of hiding them entirely.
- To hide only hard drive and external drive icons, go to Finder > Settings (or Preferences) > General and uncheck the boxes under "Show these items on the desktop."
- If you use multiple desktops (Spaces), hiding icons applies to all of them.
- Create a folder called "Desktop Archive" in your Documents and drag files there to keep your desktop clean without losing anything.
Troubleshooting
Icons don't hide after using the View menu
Make sure you clicked on the desktop first so Finder is active. If the option is grayed out, restart Finder by holding Option, right-clicking the Finder icon in the Dock, and selecting Relaunch.
Terminal command doesn't work
Check that you typed the command exactly, including spaces. If you get "command not found," you may have mistyped defaults. Also, ensure you press Enter after each line. If it still fails, restart your Mac and try again.
Only some icons disappear
If you used the View menu and only some icons vanish, those might be aliases or special items. Use the Terminal method to hide all, or manually move the remaining ones.
Icons come back after restart
If you used the View menu, the setting should persist. If you used Terminal and the setting didn't stick, your Mac may have a profile that resets Finder preferences. Re-run the Terminal command after each restart, or consider using a third-party app (from the App Store) to manage desktop visibility.
Frequently Asked Questions
Does hiding desktop icons delete my files?
No. Hiding icons only makes them invisible on the desktop. Your files remain in the same location and can be accessed via Finder.
Can I hide icons on only one desktop (Space)?
No. The setting applies to all desktops. You can, however, move files to a specific folder and only show that folder on one desktop using Stacks.
Why do external drive icons still show after I hide desktop icons?
The View menu option hides all icons, including drives. If you only see drives, you may have used a different setting. To hide drives specifically, go to Finder > Settings > General and uncheck "External disks" and "Hard disks."
Will hiding icons improve performance?
It can slightly reduce the load on Finder, especially if you have hundreds of icons, but the effect is minimal on modern Macs.
How do I show icons again after using Terminal?
Run defaults write com.apple.finder CreateDesktop -bool true and then killall Finder in Terminal.
Can I hide only file icons but keep folder icons visible?
There's no built-in way to do that selectively. You can use Stacks to group files, or move files to a folder and leave folders on the desktop.