core icon indicating copy to clipboard operation
core copied to clipboard

Deleting some files/folders permanently

Open heaven988 opened this issue 12 years ago • 18 comments

I think that some behaviour of owncloud is not very convenient.

The trash bin is very usefull, so we can get back the file we delete by mistake (even with the sync-client). And the behaviour of the trash bin is good (as it is describe here : http://doc.owncloud.org/server/6.0/user_manual/files/deletedfiles.html).

But sometimes, we just want to delete permanently a big file or a big folder (a deleting of a 72GB folders is actually in progress), and we have to wait that this folder is moved in the trash_bin, and that take a lot of time (like an hour for some folders...), whereas i am sure that the delete must be permanently.

Is it possible to add an option "Deleting permanently" when we choose to delete something ? It will be very usefull in my case, but i think i am not the only one in this case.

I didn't find any subject with this proposal for now, i hope i didn't miss one :) Thanks to all the developers for this awesome tool, owncloud is nearly perfect ;)

heaven988 avatar Mar 26 '14 13:03 heaven988

@schiesbn Not sure if it is technically possible to temporirly bypass the trashbin as it uses hooks.

@owncloud/designers how about holding shift when clicking on "Delete" ? I know we probably don't want yet another file action to clutter the UI.

PVince81 avatar Mar 26 '14 13:03 PVince81

It is not possible to bypass the trash bin as long as a delete hook gets triggered. But it might be possible to perform a different action with different hooks, e.g. "permanentDelete", if for example someone is holding shift while clicking "Delete".

schiessle avatar Mar 26 '14 13:03 schiessle

Also we might want to show a confirmation dialog before deleting.

PVince81 avatar Mar 26 '14 13:03 PVince81

@PVince81 @jancborchardt loves interrupting confirmation dialogues :smile: A magic undo button for this would require some thinking though. Probably deleting on pageleave.

I love sailfish's remorse-timers for this, wish they could be used in a browser too: 20140326150109

Niduroki avatar Mar 26 '14 14:03 Niduroki

I think deleting permanently is a special case, not a common case. So being interrupted is justified, no need to overengineer this with timers or other stuff.

PVince81 avatar Mar 26 '14 14:03 PVince81

Just another idea. Didn't we also want to bring back the banner at the top to undo a delete operation? This banner could also have a button "delete permanently" next to the "undo" button. This would mean that if nothing is done the file goes to the trash, if the user clicks "undo" the delete operation will be intercepted and reversed and if he clicks "delete permanently" the file will be deleted in a way that bypass the trash bin

schiessle avatar Mar 26 '14 14:03 schiessle

Hmm. I´m not a big fan of confirmation dialogs. I´m also not sure if the banner is super helpful in this scenario. I think the "delete permanently" is a very special usecase that shoudn´t exposed to the user too much. What is the reason for this anyways? And this can already be done by deleting a file and then do a "delete peranently" in the trash bin view. No need to complicate the standard UI because of that IMHO. What do you think @jancborchardt ?

karlitschek avatar Mar 26 '14 14:03 karlitschek

@karlitschek , yes but deleting a big folder of many GB is so long.... sometimes we have to wait 1 hour before we can go in the trash bin and delete permanently. During this, we can't use owncloud. All this because the things we delete go in the trash bin anyway.

heaven988 avatar Mar 26 '14 14:03 heaven988

@heaven988 So why do you want to delete files permanently?

karlitschek avatar Mar 26 '14 15:03 karlitschek

The issue that ownCloud can't be used while the session is busy should be fixed on master already (the "close session earlier" issue)

PVince81 avatar Mar 26 '14 15:03 PVince81

@karlitschek well i can give some example that i had experiment :

  • I upload classical music of 12GB and share it with friends. Then a TV-shows of 20GB. Then always more sharing ! Some month later, i need to make space, so i start deleting my "old share", thoose who take too much space. And that take a lot of time.
  • I had a sync of all my work (90GB, i am in archeology and i have a lot of picture). Sometimes, i want to reorganise everything, so i make a copy and start deleting/renaming/moving in the way i want. When i am satisfied, i can delete the 90GB folders (and that take more than an hour)
  • I make a temporary backup of my system of 72GB, some weeks later, i don't need it anymore because the backup is to old, so i delete the backup.

When i say that it is very long, you have to know that i am using this server :+1: http://www.soyoustart.com/en/offers/sys-e32-1.xml

Half of the user of my owncloud is complaining about this behaviour, and every one had different habits (some are reading graphic books, other use it for movie, some for work and pictures)

@PVince81 : That's a good things, but my owncloud will work for nothing anyway, that's not logic.

PS : Sorry for my english, i am doing my best !

heaven988 avatar Mar 26 '14 15:03 heaven988

@heaven988 But ownCloud should expire the trash automatically when running out of space, no?

karlitschek avatar Mar 26 '14 15:03 karlitschek

@karlitschek Indeed, that's while i was saying that the trashbin had a good behaviour. But if we want to delete permanently something that we are sure we don't want anymore (like an old backup), using the trashbin is useless because that consumm a lot of ressources if the folder is big.

heaven988 avatar Mar 26 '14 15:03 heaven988

From my understanding the root cause of deleting (moving files to the trashbin) is that the files are not moved but copied and deleted.

I'm aware that the current implementation relies on this mechanism, but maybe this behavior can be changed.

Please keep in mind that the sync clients are suffering from this behavior as well.

DeepDiver1975 avatar Mar 26 '14 15:03 DeepDiver1975

Interaction-wise, we are talking about 2 different things here:

  • the main topic of this request is an additional »permanent delete«. I’d be fine to bind this to »holding shift while clicking delete« shortcut. No additional interface or dialog for that please.
  • the second thing is the undo notification – which should be there for the normal deletion as well as a new permanent deletion, if we choose to implement that. See https://github.com/owncloud/core/issues/119 for that.

jancborchardt avatar Mar 27 '14 11:03 jancborchardt

Hello, Do you had think about that ? Do you have plan for making a better behaviour especially for very big folder ?

heaven988 avatar Apr 17 '14 08:04 heaven988

But sometimes, we just want to delete permanently a big file or a big folder (a deleting of a 72GB folders is actually in progress), and we have to wait that this folder is moved in the trash_bin, and that take a lot of time (like an hour for some folders...), whereas i am sure that the delete must be permanently.

This has changed a lot. We fixed the trashbin logic to move the files instead of copying. So the deletion is more or less instant. If you still have trouble with this issue feel free to reopen the ticket. Thanks :)

MorrisJobke avatar Jan 19 '16 00:01 MorrisJobke

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Aug 06 '19 21:08 lock[bot]