How to add trash can to desktop Ubuntu. Also learn to remove trash from desktop Ubuntu. There are two methods to add trash can to desktop Ubuntu and similarly you can also remove trash from desktop Ubuntu.
Method 1 – Using Dconf Editor
1. First open Ubuntu Software, search for and install Dconf editor.
2. Launch dconf editor, and navigate to org > gnome > shell > extensions > dash-to-dock.
3. To add trash can to desktop Ubuntu, scroll down, find out the key says show-trash and turn it on.
4. To to remove trash from desktop Ubuntu. Navigate to org > gnome > shell > extensions > desktop-icons, and turn off the toggle for show-trash.
Method 2 – Using Terminal – Commandline
1. To add trash can to the panel:
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash true
You can replace true with false in the command to remove the icon.
2. To remove trash icon from the desktop:
gsettings set org.gnome.shell.extensions.desktop-icons show-trash false
Please restart the system to apply changes.