{"id":45227,"date":"2024-01-16T12:10:41","date_gmt":"2024-01-16T12:10:41","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=45227"},"modified":"2024-01-16T12:10:41","modified_gmt":"2024-01-16T12:10:41","slug":"disable-recent-files-ubuntu","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/01\/disable-recent-files-ubuntu\/","title":{"rendered":"How to Disable Recent Files in Ubuntu 24.04 | 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/recent-files-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-45228\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/recent-files-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/recent-files-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/recent-files-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/recent-files-icon-700x700.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/recent-files-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/recent-files-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>This simple tutorial shows how to disable (or auto-delete) &#8220;recent&#8221; files tab in left side-bar of file manager in Ubuntu 24.04 &amp; 22.04.<\/p>\n<p>GNOME Files, aka Nautilus file manager, has a &#8220;<b>Recent<\/b>&#8221; tab in left side-bar, which include all the recent opened photos, videos, and documents.<\/p>\n<p>It&#8217;s useful for user or applications to quickly re-open recent edited files. However, when working at a public place, it can be better to disable this feature since it may contain sensitive data.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/nautilus-recent.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45229\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/nautilus-recent-700x372.webp\" alt=\"\" width=\"610\" height=\"324\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/nautilus-recent-700x372.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/nautilus-recent-300x160.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/nautilus-recent-768x409.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/nautilus-recent-1320x702.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/nautilus-recent.webp 1387w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><br \/>\n<!--more--><\/p>\n<p>NOTE: This tutorial is written for the default <b>GNOME Desktop<\/b>, not only for Ubuntu, but also works in Fedora, Debian, Arch, etc with GNOME.<\/p>\n<h3>Option 1: Single command to disable Recent files<\/h3>\n<p>For those who are familiar with Linux commands, or want to bind to a keyboard shortcut to do the job, the thing can be done via a single <code>gsettings<\/code> command.<\/p>\n<p><b>To disable Recent files<\/b>, simply press <code>Ctrl+Alt+T<\/code> on keyboard to open terminal and run command:<\/p>\n<pre>gsettings set org.gnome.desktop.privacy remember-recent-files false<\/pre>\n<p>The command will hide the &#8220;Recent&#8221; tab from Nautilus file manager, next time your open it, however, all the files in the tab were cleared immediately after running the command.<\/p>\n<p><b>To re-enable Recent files<\/b>, open terminal and run command:<\/p>\n<pre>gsettings reset org.gnome.desktop.privacy remember-recent-files<\/pre>\n<p>Also, you need to re-open the file manager window to make the &#8220;Recent&#8221; tab visible again.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45230\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-700x321.webp\" alt=\"\" width=\"610\" height=\"280\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-700x321.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-300x138.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-768x352.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles.webp 822w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>For choice, you may run the command below instead, to <b>automatically delete<\/b> (clear) recent used files older than given days (3 days for example):<\/p>\n<pre>gsettings set org.gnome.desktop.privacy recent-files-max-age 3<\/pre>\n<p><b>Tips 1<\/b>: By replacing <code>gnome<\/code> in last commands with <code>cinnamon<\/code> will do simply job for Ubuntu Cinnamon or Linux Mint (Cinnamon Edition).<\/p>\n<p><b>Tips 2<\/b>: By going to &#8220;System Settings -&gt; Keyboard -&gt; View and Customize Shortcuts -&gt; Custom Shortcuts&#8221;, you can bind the commands to keyboard shortcuts.<\/p>\n<h3>Option 2: Use &#8216;Privacy&#8217; Settings to Disable Recent Files.<\/h3>\n<p>For the graphical way, Gnome Control Center (aka System Settings) has an option to do the job in <code>Privacy<\/code> or <code>Privacy &amp; Security<\/code> page.<\/p>\n<p><b>1.<\/b> First, open Settings from top-right corner system status menu (Quick Settings):<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/open-settings.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-44515\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/open-settings.webp\" alt=\"\" width=\"446\" height=\"295\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/open-settings.webp 446w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/open-settings-300x198.webp 300w\" sizes=\"auto, (max-width: 446px) 100vw, 446px\" \/><\/a><\/p>\n<p><b>2.<\/b> When it opens, navigate to Privacy (or Privacy &amp; Security) -&gt; File History &amp; Trash.<\/p>\n<p>Finally, either turn off &#8220;File History&#8221; toggle button to disable the &#8220;Recent&#8221; files, or change &#8220;File History Duration&#8221; to auto clear them when older than given days.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-1.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-45231\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-1-700x541.webp\" alt=\"\" width=\"610\" height=\"471\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-1-700x541.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-1-300x232.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-1-768x594.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/01\/disable-recentfiles-1.webp 1191w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>That&#8217;s it. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>This simple tutorial shows how to disable (or auto-delete) &#8220;recent&#8221; files tab in left side-bar of file manager in Ubuntu 24.04 &amp; 22.04. GNOME Files, aka Nautilus file manager, has a &#8220;Recent&#8221; tab in left side-bar, which include all the recent opened photos, videos, and documents. It&#8217;s useful for user or applications to quickly re-open [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":45228,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[689,2131],"class_list":["post-45227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-gnome","tag-privacy"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/45227","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=45227"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/45227\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/45228"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=45227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=45227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=45227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}