{"id":35137,"date":"2021-10-19T13:25:39","date_gmt":"2021-10-19T13:25:39","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=35137"},"modified":"2024-05-04T13:05:08","modified_gmt":"2024-05-04T13:05:08","slug":"remove-trash-from-dock-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/10\/remove-trash-from-dock-ubuntu\/","title":{"rendered":"How to Remove Trash Icon From Left Dock Panel in Ubuntu 24.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-34682\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This simple tutorial shows how to remove the trash icon from the dock in Ubuntu 24.04 Noble Numbat.<\/p>\n<p>Different to the previous releases, <b>Ubuntu 24.04<\/b>\u00a0puts the trash icon on left dock instead of the desktop. However, I don&#8217;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.<\/p>\n<p>If you also find it useless, then here&#8217;s how to remove it either via a single command or by a graphical configuration tool.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dock-trash.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46475\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dock-trash-700x641.webp\" alt=\"\" width=\"610\" height=\"559\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dock-trash-700x641.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dock-trash-300x275.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dock-trash-768x704.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dock-trash.webp 966w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><br \/>\n<!--more--><\/p>\n<h3>Single command to remove Trash from the dock:<\/h3>\n<p>Press <b>Ctrl+Alt+T<\/b> key combination on keyboard to open terminal. When it opens, run the command below will tell Ubuntu Dock to hide the trash icon:<\/p>\n<pre>gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/removetrashdock.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-35139\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/removetrashdock.png\" alt=\"\" width=\"600\" height=\"171\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/removetrashdock.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/removetrashdock-300x86.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>(<b>Optional<\/b>) The command takes effect immediately. If you change your mind and want to revert it back. Use command:<\/p>\n<pre>gsettings reset org.gnome.shell.extensions.dash-to-dock show-trash<\/pre>\n<h3>Hide Trash Icon using &#8220;Settings&#8221;:<\/h3>\n<p>Since Ubuntu 22.04, System &#8216;Settings&#8217; (aka Gnome Control Center) has an option to toggle display the icons on left dock.<\/p>\n<p>First, click on top-right corner system tray icon to open &#8216;<b>Settings<\/b>&#8216;.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/open-settings.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-44515\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/open-settings-300x198.webp\" alt=\"\" width=\"300\" height=\"198\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/open-settings-300x198.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/open-settings.webp 446w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>When it opens, navigate to &#8220;<b>Ubuntu Desktop<\/b>&#8221; in the left pane, then scroll down in right and click on &#8220;<b>Configure dock behavior<\/b>&#8220;. In the pop-up dialog, you&#8217;ll see the option to turn on\/off &#8216;Trash&#8217;, as well as mounted volumes\/usb disk, etc.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/toggle-trash-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-44516\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/toggle-trash-icon-600x405.webp\" alt=\"\" width=\"600\" height=\"405\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/toggle-trash-icon-600x405.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/toggle-trash-icon-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/toggle-trash-icon-768x519.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/toggle-trash-icon.webp 1061w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Hide Trash Icon using Dconf Editor:<\/h3>\n<p>For beginners and\/or those hate Linux commands, an advanced graphical configuration tool &#8220;<b>Dconf Editor<\/b>&#8221; is present to do the job.<\/p>\n<p>First, search for install &#8220;Dconf Editor&#8221; from Ubuntu Software if you don&#8217;t have it:<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-33935\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal-600x346.jpg\" alt=\"\" width=\"600\" height=\"346\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal-600x346.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal-300x173.jpg 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal-768x442.jpg 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/06\/dconf-editor-focal.jpg 887w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Next, search for and launch the tool from activities overview screen. When it opens, click on &#8220;I&#8217;ll be careful&#8221; button, and then navigate to &#8220;<b>org\/gnome\/shell\/extensions\/dash-to-dock<\/b>&#8220;.<\/p>\n<p>There you&#8217;ll see all the settings for Ubuntu Dock. Scroll down and toggle off the slider icon for &#8220;show-trash&#8221; will do the trick.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dconf-editor-showtrash.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-35140\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dconf-editor-showtrash.png\" alt=\"\" width=\"600\" height=\"333\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dconf-editor-showtrash.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/dconf-editor-showtrash-300x167.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>That&#8217;s it. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows how to remove the trash icon from the dock in Ubuntu 24.04 Noble Numbat. Different to the previous releases, Ubuntu 24.04\u00a0puts the trash icon on left dock instead of the desktop. However, I don&#8217;t use the trash icon in either location. Instead, I removes files using right-click menu options, and go [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34682,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[689],"class_list":["post-35137","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-gnome"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/35137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=35137"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/35137\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34682"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=35137"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=35137"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=35137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}