This tweak can be used to hide all icons on your desktop by preventing the Desktop folder from being used.
Start a new Terminal session (in Finder click Applications > Utilities > Terminal).
To disable this setting, type (or copy and paste) the following command:
defaults write com.apple.finder CreateDesktop -boolean false
To reset this setting to the default value, type (or copy and paste) the following command:
defaults write com.apple.finder CreateDesktop -boolean true
To activate this tweak immediately, type the following command, or wait until the next reboot:
Close the Terminal session by typing
exit at the prompt.
Note: When this tweak is activated, your original files will still be available in your Desktop folder, just not visible on the desktop. You will also not be able to store any new files or icons on the Desktop.
Disclaimer: Making any changes to your system can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from these modifications can be resolved. Please follow the instructions carefully and use the information provided at your own risk.