TechBuzzPro

Hide All Desktop Icons on Mac with One Click

· 4 min read · Mac

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

You can hide all desktop icons on your Mac with one click by using the Terminal command defaults write com.apple.finder CreateDesktop -bool false && killall Finder. This instantly hides every icon on your desktop, including files, folders, and drives, leaving a clean wallpaper. To bring them back, run the same command with true instead of false. No third-party apps are needed, and the change persists until you revert it.

What You'll Need

  • A Mac running macOS (any recent version).
  • Access to the Terminal app (found in Applications > Utilities).
  • Administrator password if prompted (usually not required for this command).

Step-by-Step

  1. Open Terminal. Press Command + Space to open Spotlight, type Terminal, and press Return. Alternatively, go to Applications > Utilities > Terminal.
  2. Copy the hide command. Paste the following into Terminal (without quotes): defaults write com.apple.finder CreateDesktop -bool false && killall Finder. You can copy it from here.
  3. Press Return. The command runs immediately. Your desktop icons will disappear, and Finder will restart (windows may close briefly).
  4. Verify the change. Look at your desktop—it should now show only the wallpaper. If icons remain, ensure you typed the command exactly as shown.
  5. To restore icons later, open Terminal again and run: defaults write com.apple.finder CreateDesktop -bool true && killall Finder. Press Return, and your icons will reappear.

Note: Menu labels and paths can differ slightly by macOS version, but Terminal is consistently found in Utilities.

Common Mistakes

  • Typing the command incorrectly. Missing spaces, wrong capitalization, or using a hyphen instead of an underscore can cause errors. Copy and paste the command to avoid typos.
  • Forgetting the killall Finder part. Without it, Finder won't refresh, and icons may remain visible until you restart Finder manually.
  • Using sudo unnecessarily. This command does not require administrator privileges; adding sudo may cause permission issues.
  • Expecting a toggle in System Settings. macOS does not provide a built-in checkbox to hide all desktop icons; the Terminal method is the standard workaround.
  • Running the command while Finder is busy. If Finder is unresponsive, the killall may fail; restart Finder first via Apple menu > Force Quit.

Tips

  • Create a shortcut. Save the hide and show commands as aliases in your shell profile (e.g., ~/.zshrc) for even faster access. For example, add alias hideicons='defaults write com.apple.finder CreateDesktop -bool false && killall Finder' and alias showicons='defaults write com.apple.finder CreateDesktop -bool true && killall Finder'. Then just type hideicons or showicons in Terminal.
  • Use a script or Automator app. Create a simple Automator application that runs the Terminal command, then drag it to your Dock for one-click toggling.
  • Hide only specific items. If you want to hide only certain icons, consider using Finder's View Options (Command+J) to uncheck "Show these items on the desktop" for specific categories like hard disks, external disks, CDs, servers, and connected servers. This is a built-in alternative that doesn't require Terminal.
  • Remember to restore before troubleshooting. If you need to access desktop files, run the show command first.

Troubleshooting

  • Icons still visible after running the command. Ensure you included && killall Finder. If you did, try restarting your Mac. If icons persist, check for third-party desktop managers that might override the setting.
  • Terminal shows "command not found". You likely mistyped defaults or killall. Copy the command exactly as provided.
  • Finder keeps crashing or restarting. This can happen if the command is run repeatedly. Wait a few seconds and try again. If problems continue, restart your Mac.
  • I want to hide icons but keep them accessible. The Terminal method hides all icons; to access files, use Finder or Spotlight. Alternatively, use the View Options method to hide only specific categories.
  • After a macOS update, icons reappear. Some updates may reset Finder preferences. Simply run the hide command again.

Frequently Asked Questions

Does this hide icons permanently?

Yes, the setting persists across restarts and until you change it back with the show command.

Will this affect files on my desktop?

No, files remain in the Desktop folder; they are just not displayed on the desktop. You can still access them via Finder.

Can I hide icons without using Terminal?

You can hide specific categories (like hard disks) via Finder View Options, but to hide all icons at once, Terminal is the only built-in method.

Is this safe?

Yes, it's a simple preference change and does not delete or modify your files.

Why do my icons come back after restarting?

If the setting didn't stick, ensure you ran the command correctly. Some system cleaning apps might reset Finder preferences.

Can I undo this if I forget the command?

Yes, the show command is the same but with true instead of false. You can also reset Finder preferences by deleting the Finder plist file, but that's more complex.