I have a Nextcloud 17.03 with about 30 users. We used the “Group Folders” plugin to manage rights, access and well prioritize everything. No worries about that, everything works very well. I recently had a disk space storage alert, and after various investigations, it turns out that the “trash” folder of the group folders is more than 40G.
du -hs __groupfolders/trash
46G __groupfolders/trash
How can I empty this recycle bin to recover disk space?
Maybe I can manually delete the contents of this folder, and then re-launch an indexing on the Nextcloud side? Is this part of good practice or will I be bothered with it?
The trash can be emptied, but you also have to take care of the referneces in occ_filecache and oc_group_folders_trash.
But this should be done from from a task not manually - maybe you can ask for an extension in the group_folders project?
If you ask that question - you should not do it.
Honest - you have to do a delete entry in the database where path is like __groupfolders/trash/%
So if you’re not sure about database operations - don’t do it (or at least dump the database before manipulations)
I think that would be best. Something like the trash cleanup for usual files.
Um, I’m really not sure I want to do this on a production server with so much data! I’m going to delete some files by hand, and run an index again to see what it looks like.
any news on that? I have the same problem and didn’t find a working solution for a productive system yet. It seems to be a problem well known over a year, but does not got fixed
No news from last time…
You can still delete the data that have been deleted from the Group Folders through the trash can of the web interface via the administrator account (or the account that created and set up the Group Folders) but still nothing via the utility occ …
There is a good working workaround, posted by “bastiencyr” on Bountysource.com
I have a provisional solution to empty the trashbin. Do this :
1. select the mark all button and suppress all (only files NOT in group folder will be removed)
2. select the mark all button again, and uncheck only one file on the list.
3. Remove all files (except the one last file)
4. it works for me
That‘s nice, well done. It’s a better workaround or a admin solution, but no solution for normal users. Would love to see it implemented in Nextcloud GUI.