How to Remove Trash Can Icon From Left Dock Panel in Ubuntu 21.10

This simple tutorial shows how to remove the trash icon from the dock in Ubuntu 21.10 Impish Indri.

Different to the previous releases, Ubuntu 21.10 puts the trash icon on left dock instead of the desktop. However, I don’t use the trash icon in either location. Instead, I removes files using right-click menu options, and go to trash via file manager left sidebar.

If you also find it useless, then here’s how to remove it either via a single command or by a graphical configuration tool.

Single command to remove Trash from the dock:

Press Ctrl+Alt+T key combination on keyboard to open terminal. When it opens, run the command below will tell Ubuntu Dock to hide the trash icon:

gsettings set show-trash false

(Optional) The command takes effect immediately. If you change your mind and want to revert it back. Use command:

gsettings reset show-trash

Hide Trash from Ubuntu Dock via Dconf Editor:

For beginners and/or those hate Linux commands, an advanced graphical configuration tool “Dconf Editor” is present to do the job.

First, search for install “Dconf Editor” from Ubuntu Software if you don’t have it:

Next, search for and launch the tool from activities overview screen. When it opens, click on “I’ll be careful” button, and then navigate to “org/gnome/shell/extensions/dash-to-dock“.

There you’ll see all the settings for Ubuntu Dock. Scroll down and toggle off the slider icon for “show-trash” will do the trick.

That’s it. Enjoy!