Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
20
rated 0 times [  20] [ 0]  / answers: 1 / hits: 5419  / 1 Year ago, tue, february 28, 2023, 7:24:17

Is there any way to configure Ubuntu to permanently delete files from trash after a certain amount of time?



I don't get why that's not the default behavior in any major OS. I don't want to think about administrating my trash, but I don't want to accidentally delete something either. Am I the only one with that opinion?


More From » trash

 Answers
6

Use trash-cli Install trash-cli
(click image to install or run sudo apt-get install trash-cli).



Run trash-empty 30 to remove all files from trash which are older than 30 days. (You can change this number as you like.)



To automate this, add a command to Startup Applications:



enter image description here






Please note: If you use older Ubuntu versions than 12.04, the command is empty-trash!


[#37954] Tuesday, February 28, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
elecerna

Total Points: 140
Total Questions: 121
Total Answers: 107

Location: Northern Ireland
Member since Sun, Nov 21, 2021
3 Years ago
;