Give warning on deletion of large amount of data #38628
Labels
0. Needs triage
Pending check for reproducibility or if it fits our roadmap
enhancement
feature: files
How to use GitHub
Is your feature request related to a problem? Please describe.
So... I may or may not have seen my life flash before my eyes when I almost deleted my entire file server.
I was planning on emptying the trash, so I opened Nextcloud Files, clicked the trash can, clicked the checkmark to select all of the files, then went to the three dots and clicked the trash icon.
Little did I realize that I hadn't actually clicked the trash icon. I just deleted every file from my Nextcloud root directory.
Fortunately, I'm able to restore these items from the trash, but I'm now having to let this sit the night and hope that none of my shares are broken by deleting then restoring these folders. In addition, I'll have to restore all the folders tomorrow, leading to more personal downtime.
While this is a problem with me and not with Nextcloud, it would be nice if there were a warning if you either delete all of your files or if you delete files >30 or so Gb. Just a "Warning: you are about to delete XX Gb of files. Are you sure you want to continue?" to help people like me :-)
Describe the solution you'd like
It would be nice if there were a warning if you either delete all of your files or if you delete files >30 or so Gb. Just a "Warning: you are about to delete XX Gb of files. Are you sure you want to continue?" to help people like me :-)
Even Ubuntu requires an extra flag before running
rm -rf /
, so some extra confirmation would be nice!This could get annoying for some users, but I think the tradeoff is worth it. Even if it's not based on file size and is just there to make sure you don't delete your root directory, anything would be helpful!
Describe alternatives you've considered
Double-checking my file directories!
Additional context
Sigh just giving it the night to finish the deletion, then will spend all day tomorrow restoring the files 😔
All in all though, thank you guys for maintaining Nextcloud!
The text was updated successfully, but these errors were encountered: