server icon indicating copy to clipboard operation
server copied to clipboard

File Delete Confirmation Dialog

Open HaziFlorinMarian opened this issue 3 years ago • 11 comments

Is your feature request related to a problem? Please describe. When we right-click on the files we have the last two options from the "Download" and "Delete" list. It is very common for our users to click "Delete" instead of "Download" and the files are deleted directly.

Describe the solution you'd like When we click on "Delete" a popup window will open asking us to confirm if we really want to delete.

Describe alternatives you've considered The "Download" and "Delete" buttons are no longer below each other.

Additional context It's not necessary.

HaziFlorinMarian avatar Apr 19 '22 10:04 HaziFlorinMarian

Cc @nimishavijay @jancborchardt

szaimen avatar Apr 19 '22 10:04 szaimen

A confirmation dialog is as much more important if files_versions app is disabled!

Please implement such a feature at minimum as optional (configurable) setting.

killerbees19 avatar Jul 06 '22 18:07 killerbees19

Hi Guys, Any update for this feature. Please!!!!

giang13297 avatar Sep 15 '22 11:09 giang13297

hi i also want to request for this feature and mention that people have also requested for it on forums. Is it also possible to rename the title of this feature request to something like "Confirmation Dialog for files & folder deletion" Thanks

delacosta456 avatar May 08 '23 12:05 delacosta456

Interesting problem! One Drive and Dropbox have a confirmation dialogue for deleting files too. However, it seems intrusive to show a confirmation dialogue every time a file is deleted, since deletion is a common action. There is also a trash bin from which files can be recovered.

We could definitely move the "Download" action up. Another solution is to have a notification with an undo button, similar to sending a message in Mail. This is also the behaviour for Google Drive. So a notification Design review.md has been deleted. [Undo]. This would be my preferred solution as it is not as intrusive, and still offers a way to quickly cancel deletion if it was by mistake. What do you think? cc @jancborchardt and @szaimen as well

nimishavijay avatar May 08 '23 13:05 nimishavijay

@nimishavijay I agrees that an undo popup would be the preferred solution in that case since showing a popup might be too intrusive and slow and as you said we have the trashbin for this case.

However maybe there could be a differentiation between folders and files? So that to show the popup for folders and/or if multi-selecting and then clicking on the delete option?

szaimen avatar May 08 '23 13:05 szaimen

There is also a trash bin from which files can be recovered.

In some cases this feature is disabled, because it's nearly incompatible with external files storage and big files. (See #14436 or #18396)

killerbees19 avatar May 08 '23 14:05 killerbees19

hi @nimishavijay intrusive... truly and if your are talking about deleting multiple files, selecting concerned files/folder with check box method(already present) could present a single confirmation box about select items. Also, i think Gmail has a setting to configure (enable) "Confirm before deleting.." may be implementing this (if possible) could let the user decide what is comfortable .

delacosta456 avatar May 09 '23 02:05 delacosta456

@nimishavijay @szaimen @jancborchardt What about showing a confirm if you are deleting more than one file ?

That would be a sane compromise to move that issue forward I think? :)

skjnldsv avatar Jan 02 '24 17:01 skjnldsv

@nimishavijay @szaimen @jancborchardt What about showing a confirm if you are deleting more than one file ?

That would be a sane compromise to move that issue forward I think? :)

Yes, sounds like a good solution to me :)

szaimen avatar Jan 03 '24 11:01 szaimen

@skjnldsv yup, sounds like a good first step. :)

jancborchardt avatar Jan 03 '24 12:01 jancborchardt

If trash & file versions are disabled (which sometimes is required) then being able to delete entire folders of terabytes of data in a single click without confirmation is a HUGE issue. Absolutely nextcloud should ask users if they are sure - every time - if trash can and versions are disabled. This is a massive massive massive usability issue with tremendous danger of incredible file loss.

matthewlordtech avatar May 11 '24 06:05 matthewlordtech

If trash & file versions are disabled (which sometimes is required) then being able to delete entire folders of terabytes of data in a single click without confirmation is a HUGE issue. Absolutely nextcloud should ask users if they are sure - every time - if trash can and versions are disabled. This is a massive massive massive usability issue with tremendous danger of incredible file loss.

You might have missed this in the history of this issue -> https://github.com/nextcloud/server/pull/43231

Not yet sure what version of nextCloud it comes in though. I'm checking currently.

BloodyIron avatar Jul 18 '24 20:07 BloodyIron

Looks like it made it into v29.0.0-beta1, so prettttyyyy sure it's in RELEASE v29.x : https://github.com/nextcloud/server/releases/tag/v29.0.0beta1

BloodyIron avatar Jul 18 '24 20:07 BloodyIron

Er wait hold on... is there no delete confirmation in v29 for a single file delete instruction? :s

BloodyIron avatar Jul 18 '24 20:07 BloodyIron

No, there is if you delete more than X items at a time. The idea of also asking for confirmation for folder bigger than X GB is pretty nice too.

But if files_trashbin is disabled, I think we should always ask for confirmation, I agree.

@jancborchardt @nimishavijay ?

skjnldsv avatar Jul 19 '24 05:07 skjnldsv

I for one would really want a setting to just ask every time anyways, even if you can toggle it off. Having to go to the trashbin because... OOPS I clicked delete instead of download... is now a waste of time to retrieve it, that could have easily been avoided by an "Are you sure?". To me that I think enables a happy medium for all. I actually can't even fathom why this change even required a minimum # to activate in the first place, that seems very out of place.

BloodyIron avatar Jul 19 '24 05:07 BloodyIron

For people with no trash bin (pretty much essential for files_external) there is still a giant risk of deleting literally terabytes in a single click of a button which starts with the same letter as, and sits right alongside, the Download button.

It's absolutely horrifying to be honest and makes nextcloud completely unusable for large teams where accidents can happen!

Can't we just please have a setting in admin to alert users to confirm deleting files? That seems to be a simple solution, and pretty much every single operating system and cloud service already does this!

With all that said, thank you for the start in a right direction with what we have so far -- at least it's better than before (although I would say still not enough)

matthewlordtech avatar Jul 20 '24 14:07 matthewlordtech

Oh and to clarify, I really think there should be no minimum number of selected items for an "Are you sure?" dialogue. Right clicking on a file to delete/download is precariously close together. This is completely avoidable as a problem. Whether trash exists or not.

BloodyIron avatar Jul 21 '24 15:07 BloodyIron

I love nextcloud and I'm so grateful but I have to be honest it's so crazy and confusing to me this is even debated... if trash can is disabled, confirm every single delete.

matthewlordtech avatar Jul 23 '24 00:07 matthewlordtech

if trash can is disabled, confirm every single delete.

this part is definitely not debated, I'll take care of it asap ! :)

skjnldsv avatar Jul 25 '24 07:07 skjnldsv