Launcher icon indicating copy to clipboard operation
Launcher copied to clipboard

[Request] Deleted instances should go to the recycling bin

Open aaronhowser1 opened this issue 5 years ago • 13 comments

System Information

MultiMC version: 0.6.11-1430

Operating System: W10

Summary of the issue or suggestion: When an instance is deleted, it should be sent to the recycling bin so it can be recovered

aaronhowser1 avatar Jun 08 '20 05:06 aaronhowser1

Why? MultiMC asks you very clearly if you're sure you want to delete your instance. Aside from that it would have to be implemented separately for each OS. And not even all of them have recycle bins.

Heufneutje avatar Jun 08 '20 06:06 Heufneutje

Because some people ~~are stupid~~ might delete the wrong instance if they aren't paying attention, and it would prevent something like this

aaronhowser1 avatar Jun 08 '20 06:06 aaronhowser1

It just adds an unnecessary extra step for everyone who does want to actually delete an instance, not to mention maintainability cost. All to solve a very niche use case that most games don't bother with either. If you delete a save file it's gone as well. I don't see this any differently.

Heufneutje avatar Jun 08 '20 09:06 Heufneutje

I agree to @Heufneutje its just an extra hassle and I have nobody than myself to blame if I delete an instance. Yes it can happen by accident, but thats still my fault.

Zetabite avatar Jun 08 '20 13:06 Zetabite

That's what backups are for.

But if I were to do this, I'd implement a 'recycle-bin-like' functionality in MultiMC, not use the system one. They are incredibly janky and unmanageable from within MultiMC.

peterix avatar Jun 08 '20 16:06 peterix

If this does get implemented (which I personally hope it doesn't), I hope it'd be a) a configurable option, and b) off by default. I certainly don't want this; I hard-delete everything in Windows, bypassing the Recycle Bin, so it doesn't clutter up my disk. In Linux, I mostly use the command line to delete, so it doesn't apply. And with modpacks (and all the mods inside them) taking up as much space as they do, that MultiMC recycle bin could get pretty big.

JakeMoe avatar Jun 18 '20 20:06 JakeMoe

Something like this could easily be an opt in feature, But seeing that an 'ARE YOU SURE' prompt comes up when you opt to delete an instance..

I don't really see why it would be needed.

ProjectSynchro avatar Jun 18 '20 20:06 ProjectSynchro

The kind of people who opt in to that feature are not the same people that randomly delete instances they need without taking a backup. I don't see the point.

codingJWilliams avatar Jul 21 '20 00:07 codingJWilliams

Today I accidentally removed my main instance instead of a single screenshot because I thought I activated a windows Explorer window but I unknowingly focused the MultiMC window. Lost weeks of progress (years if I had not made a copy weeks ago which luckily I did). But still I was surprised that pressing delete and not shift+delete would skip the recycle bin!

Of course its a form of user error, but that's the whole reason for OS's to implement things like the recycle bin. Saying not every OS has that feature is a moot argument. It can easily be accounted for by calling the OS for the folder deletion operation, and from there on the operation will be performed in a way the user is familiar with.

Disk space issues that would arise by keeping the deleted instances should also be handled by the OS's cleanup features when applicable.

Bottom line is, making it super easy to delete someone's years upon years of creative progress without any chance to undo that action when it is technically possible to give it a chance is not the right choice when it's just to make a point along the lines of: "if you make an error it's your own fault".

catronomix avatar Nov 07 '23 22:11 catronomix

If someone comes around implementing it in a way that makes sense and makes a PR, sure. But as of now, its as "wont fix"/"out of scope".

Zetabite avatar Nov 07 '23 23:11 Zetabite

dont put your faith into the recycle bin to keep anything you care about safe, drives die all the time or get destroyed, local and external backups!

phit avatar Nov 07 '23 23:11 phit

I'm not really a programmer, just some very basic knowledge. But from what I find out from searching this repo, the GUI is using this QT framework, for which the documentation lists this function: QFile::moveToTrash() which I guess is supposed to use the trash when the OS supports it?

catronomix avatar Nov 11 '23 11:11 catronomix

I've just had a case where I deleted an instance without knowing the worlds are gone too. Should have known since I looked at the folder structure before but guess I just didn't. But the worst part is that I seemingly can't even use file recovery software to get my backup (which MMC has created because of a version switch) back. So I don't know what's going on here that even this software can't find the *.zip file. But to actually contribute to this issue: a possible solution would be to at least have backupped worlds to not be deleted when deleting an instance.

malino-dev avatar Nov 17 '23 17:11 malino-dev