> ## Content Index
> Fetch the complete content index at: https://itsfoss.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Remove Trash Icon From Desktop in Ubuntu
- URL: https://itsfoss.com/remove-trash-icon-ubuntu-desktop/
- Published: 2018-04-09T14:10:48.000Z
- Updated: 2023-08-21T03:38:46.000Z
- Description: This simple quick tip shows how to remove trash icon from the desktop in Ubuntu. Both graphical and command line methods have been discussed.
- Author: Abhishek Prakash
- Tags: Ubuntu

Starting with Ubuntu 17.10, [Canonical](https://www.canonical.com/?ref=itsfoss.com) uses a customized version of GNOME as the default desktop environment. This customized version has a resemblance to the previous default desktop environment, Unity.

While I find the new GNOME desktop quite pleasing, I don’t like one thing here and that is the trash icon on the desktop. It reminds me of the Windows XP days when there always was that recycle bin on the desktop with no direct way of removing it.

![trash icon to be removed](https://itsfoss.com/content/images/wordpress/2022/02/Trash_Icon_to_be_removed-800x372.png)

Trash icon to be removed

Unlike previous versions, here you will find the option to hide the trash icon from the desktop in the desktop icons settings.

## Remove trash icon from the desktop using Desktop Icons Settings

Go to Desktop Icon Settings from desktop right click.

![01 select desktop icon settings from desktop right click](https://itsfoss.com/content/images/wordpress/2022/02/01_Select_Desktop_Icon_Settings_from_Desktop_Right_Click.png)

Select desktop icon settings from desktop right click

Inside the new dialog box, toggle the button for trash.

![02 toggle trash button off](https://itsfoss.com/content/images/wordpress/2022/02/02_Toggle_Trash_Button_Off.png)

Toggle trash button off

That’s it. It will disappear immediately. You can toggle it again to bring back the trash icon on the desktop.

### Use the command line for the same

If you prefer the command line, you can use the command below in a terminal to remove the trash icon from Ubuntu desktop.

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

If you want it back, simply replace the false in the above command with true:

```
gsettings set org.gnome.nautilus.desktop trash-icon-visible true
```

## Remove the trash icon from the dock in Ubuntu 22.04

Another place where you find the trash icon is in the default Ubuntu Dock on the left side. There are no options to remove this icon in default system settings.

![03 trash icon in dock](https://itsfoss.com/content/images/wordpress/2022/02/03_Trash_Icon_in_Dock.png)

Trash icon in dock

Then how do you remove the trash icon? Dconf editor and the Command line come to the rescue.

I recommend using the command line method here.

### Remove the trash icon from the dock using the command line (recommended)

If you prefer the command line, you can use the command below in a terminal to remove the trash icon from the Ubuntu dock.

```
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false
```

If you want it back, simply replace the false in the above command with true:

```
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash true
```

### Remove the trash icon from the dock using dconf editor

The dconf editor lets you control various aspects of the GNOME desktop. However, if you wrongly clicked here and there and you may change some weird settings. This is why ****I don’t recommend using it***.

Just search, find and install dconf editor from the software center.

![install page dconf editor](https://itsfoss.com/content/images/wordpress/2022/02/install_page_dconf_editor-800x471.png)

Install page dconf editor

Once you have it installed, launch it by searching (press Super/Windows keys) for dconf:

![dconf from overview](https://itsfoss.com/content/images/wordpress/2022/02/dconf_from_overview-800x323.png)

Dconf from overview

Once it is launched, select “i will be careful” option and continue.

![dconf i will be carefull](https://itsfoss.com/content/images/wordpress/2022/02/dconf_i_will_be_carefull.png)

Dconf i will be carefull option

In here, go to Org > gnome > shell > extensions > dash-to-dock and toggle the show trash button.

![show trash toggle dconf](https://itsfoss.com/content/images/wordpress/2022/02/show_trash_toggle_dconf-800x417.png)

Show trash Button toggle dconf

I hope this quick tip helped you in [customizing GNOME desktop](https://itsfoss.com/gnome-tricks-ubuntu/) on your Ubuntu system.

[15 Simple Tips to Customize Ubuntu GNOMESome basic and interesting GNOME customization tips for enriching your experience and getting more out of your Ubuntu desktop.![](https://itsfoss.com/content/images/size/w256h256/2022/12/android-chrome-192x192.png)It's FOSSAbhishek Prakash![](https://itsfoss.com/content/images/2023/03/gnome-customisation-tips.png)](https://itsfoss.com/gnome-tricks-ubuntu/)

If you know other such quick tips, please share them in the comment section.