Permanently delete deletion delay

I tend to permanently delete files instead of move them to trash, and sometimes I delete stuff and then regret doing it. Would it be possible to add a delay before the file is actually deleted?

You could remove the “immediately delete” shortcut to re-train yourself to use the trash :^)

It seems like you effectively want the trash anyway. The trash is the delay. I have mine set to clean out files older than 30 days.

4 Likes

I used to be that way, very much badly so, even. But I moved to only having a ‘trash’ option, so I need to use shift-delete to permanently delete, and made sure that I have the confirmation option for this enabled. That adds a delay. :smiley:

1 Like

I guess what I really need then is a way to clear the trash after x seconds and not move the files to another folder…

1 Like

Or you can use btrfs with snapshots with autocleanup.
As long as a file is more than 1 day old it would be recuperable for at least 1 day, depending on your snapshot settings.

We lack ui-integration for this in dolphin, but that’s a interesting improvement area, I think I will look into.

1 Like

Ah, so you want an actual deletion timeout, where it doesn’t do anything until the timeout expires and then irreversibly deletes the file? The usual guideline is that this pattern should only be used for operations that actually can’t be undone (such as sending an email), and operations should be undoable and instant (like having a trash for file deletions) where possible.

1 Like

Just have trash set to small size, so the rest will get expunged.

2 Likes

Yeah, that’s essentially it.