GNOME Desktop – How to Remove Trash Icon

desktop-iconsgnomegnome-shelliconstrash

How do I remove the "Trash" icon from GNOME 3 desktop? I'm running Ubuntu 17.10 with GNOME shell.

Best Answer

Up to Ubuntu 18.10

You may use (GNOME) Tweaks (aka GNOME Tweak Tool) to do that. First install it (if it is not installed) by running the following command in Terminal

sudo apt install gnome-tweaks

or

sudo apt install gnome-tweak-tool

Launch Tweaks and go to Desktop section. Then toggle off (or uncheck) the Trash (or Rubbish bin or Wastebasket) option under "Icons on Desktop".

enter image description here

Alternatively you may run the following command in Terminal:

gsettings set org.gnome.nautilus.desktop trash-icon-visible false