By default, the Ubuntu Dock reserves its bottom slot (or far-right corner when placed horizontally) for the Trash can icon. While having quick access to deleted files is useful, many users prefer a minimalist application launcher bar dedicated exclusively to productivity tools. Ubuntu allows you to remove the Trash icon from the dock in just a couple of clicks without losing access to your deleted items.
Why Remove the Trash Can from the Application Dock?
Customising your dock icons brings several visual and ergonomic advantages:
- Cleaner Workspace Aesthetics: Strips away unnecessary system clutter for a sleek, streamlined desktop environment.
- More App Launcher Space: On smaller laptop screens, removing system utility icons frees up valuable vertical real estate for pinned work applications.
- Full File Safety: Hiding the dock icon does not delete or disable the Trash subsystem; your files remain fully recoverable inside the Files manager at any time.
Method 1: Hiding the Trash Icon via Ubuntu Settings GUI
In standard Ubuntu desktop installations, GNOME Control Centre includes a native toggle:
- Click the system indicators menu in the top-right corner of the Ubuntu top bar.
- Click the Settings gear icon to launch the control centre.
- In the left-hand navigation pane, select Ubuntu Desktop.
- Scroll down to the Dock subsection.
- Look for the toggle setting labelled Show Trash can (or Show Trash on dock).
- Toggle the switch to the Off position (the slider will turn grey).
The Trash can icon will instantly vanish from your application launcher dock.
Method 2: Hiding the Trash Can Icon Using the Terminal
If you prefer using command-line shortcuts or need to automate desktop configurations via setup scripts, use gsettings:
- Press Ctrl + Alt + T to launch a fresh terminal window.
- To hide the Trash icon immediately from the dock, execute:
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false - The change applies instantaneously without requiring a desktop logout or system reboot.
- Should you ever wish to restore the Trash icon to the dock in the future, simply run:
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash true
How to Access the Trash When the Dock Icon Is Hidden
Whenever you need to inspect deleted files or empty your recycle storage, you have multiple convenient options:
- Files App Sidebar: Open the default Files manager (Nautilus) and click Trash in the left-hand sidebar.
- Keyboard Shortcut: Open Files and press Alt + Home or navigate directly to the trash directory.
- Terminal Inspection: Your deleted items reside safely in your user home directory under
~/.local/share/Trash/files.