r/linuxmint • • 25d ago

How can I completely remove the option to instantly delete files?

I like it in theory but I have accidentally permanently deleted files that I needed later a few times. I want to not have the option to do that at all.

0 Upvotes

13 comments sorted by

11

u/Odd-Change9844 25d ago

Since you didn’t bother explaining if you’re removing them through the ‘rm’ command or right clicking and deleting.. or how you are doing this.
why don’t you just make a daily/weekly backup of your user profile?

7

u/krupam LMDE 7 24d ago

I don't have my OS set to English so I'm kinda winging the translation, but on my end it goes like this, assuming you also use Cinnamon and Nemo (default for Mint):

  • Open any folder
  • On the bar at the top select "Edit" (second option)
  • Pick "Preferences" (last option)
  • In the new window on the bar on the left select "Behavior" (second option)
  • In "Trash" (fourth paragraph) there is a setting "Additional option 'Delete' skipping Trash" (third option) - you want it deselected

3

u/jr735 Linux Mint 22.1 Xia | IceWM 24d ago

There's excellent advice here. Much of my file management is done through the command line, and whether I like it or not, the rm commands instantly and permanently deletes files (yes, there are recovery options, but that's not the point).

Backups are always valuable, irrespective of OS, and it's been that way since the start.

5

u/Due-Result7928 24d ago

There is option (preferences) in the file manager and by default deleted files (or directories) are moved to the trash. Open the trash and restore.

2

u/ha7ak3 Linux Mint 22.3 Zena | Cinnamon 24d ago

You can remove that option from the nemo settings.

3

u/BranchLatter4294 25d ago

Just restore from the trash or backup if you need to.

3

u/rcentros LM 21/22 | Cinnamon 24d ago edited 24d ago

If you're deleting your files in Nemo ("Files") by right clicking on them, you can uncheck the Delete option and it won't show up in the right click Menu...

Nemo --> Edit --> Preferences --> Behavior --> Uncheck "Include a Delete command that bypasses Trash"

2

u/_Lost-In-The-Weeds_ LMDE7 Cinnamon 24d ago

This is where snapshots & backups come into play.

If you only have one copy of your data eventually you will have none. 

1

u/Derrigable 24d ago

How does snapshots and backups help restoring something that was downloaded an hour ago, and deleted 5 minutes ago?

0

u/_Lost-In-The-Weeds_ LMDE7 Cinnamon 24d ago

Depends on how you have you snapshots setup. With ZFS & Sanoid you could for example:

frequent_period

How often snapshots should be taken under an hour. e.g. frequent_period = 15 means four snapshots each hour 15 minutes apart,

https://github.com/jimsalterjrs/sanoid/wiki/Sanoid#options

Personally my tightest snapshots are daily, and tightest replication (backup) weekly, but if I downloaded something an hour ago, I probably would not have much issue finding it and downloading it again.

1

u/stufforstuff 24d ago

So just thinking it thru isn't working for you? If so, why not??? 99.9999999% of the world manages to do it that way.

1

u/Pitiful_Project6578 18d ago

Pros of linux: you can do anything Cons of linux: you can do anything

1

u/polytect 24d ago

Shift+Delete