How To Manage File History and Deleted Files in Ubuntu 22.04

Ubuntu retains the history of accessed files which are then shared between different applications to provide a better user experience. By default, this is enabled, but can be changed if needed.

Also, you can auto-delete temporary files and deleted files that are in the trash for better privacy and optimization.

Here is how to do these in Ubuntu 22.04:

Open Ubuntu dash and click Settings.

Ubuntu 22.04 dash

From the settings list, select Privacy.

Accessing Privacy settings in Ubuntu 22.04

From the Privacy menu, click on File History & Trash.

File History and Trash settings in  Ubuntu 22.04

This opens the file history and trash/temporary files settings.

 Ubuntu 22.04 File History and Trash default settings

File History: By default, the file history is turned on. You can change it to off. There is also the default duration for which this file history is retained, the default being forever.

Toggle File History in  Ubuntu 22.04

If you would like to lower the retention period while keeping the file history on, select from the drop-down menu for File History Duration. It ranges between 1 day to Forever.

Automatically clear file history in  Ubuntu 22.04

Trash and Temporary Files: This setting is off by default. Enable this auto-deletion for trash and temporary files.

Trash and temporary files settings in  Ubuntu 22.04

Also, when enabled, trash and temporary files will be auto deleted after 30 days but you can change this period. The drop-down menu for Automatically Delete Period ranges from 1 hour to 30 days.

Set automatically delete period for trash and temporary files in Ubuntu 22.04

Choose any of the values as needed.

You can also choose to manually delete these by clicking the Empty Trash or Delete Temporary Files buttons.

Mnaually empty trash in  Ubuntu 22.04
Mnaually delete temporary files in  Ubuntu 22.04

All done.

Leave a Comment