33

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

pomsky
  • 70,557
joshas
  • 675

7 Answers7

46

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
pomsky
  • 70,557
14

After following Exien's answer on Ubuntu 20.04, the GUI became extremely slow and unresponsive. I had to reinstall Ubuntu even after reverting the value to true which did not fix the problem it generates.

In Ubuntu 20.04

It is actually easy:

  1. Search for Extensions (preinstalled) in the Activities overview.

    Search for Extensions (comes installed ready)

  2. Click on the Settings gear icon next to the Desktop Icons toggle

    Click on the settings gear icon next to the Desktop Icons toggle

  3. Toggle icons as required

    Toggle icons as required

pomsky
  • 70,557
6

Ubuntu 19.04 and later

The following terminal command works:

gsettings set org.gnome.shell.extensions.desktop-icons show-trash false
Exien
  • 71
1

The extensions don't work for ubuntu 21.04 just right click on the desktop and select "settings" you will find your options there

0

If the Extensions app doesn't show up in the Activities menu (as it did for me) you can use:

gnome-extensions prefs desktop-icons@csoriano

to open the window shown in Brendan's answer.

You can also hide all icons (including files) with:

gnome-extensions disable desktop-icons@csoriano
Cyrill
  • 101
  • 1
0

In Ubuntu 20.04, click the right upper corner of teh screen > Settings > Appearance (left side menu) > Configure dock behavior > Set off the "Show Trash" option

C G O
  • 1
0

Ubuntu 22.04

Right click on the Desktop space and select Desktop Icons Settings enter image description here

Find Configure Dock behaviour section enter image description here

Toggle Show Trash button

enter image description here