Nextcloud version (eg, 20.0.5):
Operating system and version (eg, Ubuntu 20.04):
Apache or nginx version (eg, Apache 2.4.25):
PHP version (eg, 7.4):
I let our NextCloud instance get a little behind in versions (it was running perfectly so I didn’t touch it) and now I’m trying to fix that. First I found that groupfolders wasn’t honoring the systemwide trash lifetime setting (okay so it wasn’t running perfectly). There are files from 2+ years ago in there, oops. So I started manually removing them then because there isn’t an easy way to multiselect or sort by date in the GUI I issued a webdav PROPFID command, got all the file information and then have issues multiple webdav DELETE commands to remove those files.
Right now that is still going on but it has progressed past files older than 365 days. When I look in the GUI it confirms this. However when I go on the filesystem and do a
find /mnt/ncdata/__groupfolders/trash//trash/ -type f -mtime +365 -print | wc -l it is showing 10917 files still there.
If they aren’t known about by Nextcloud can I just delete them (well move them to a temporary location first and then delete after XX days)? If I do delete them is there an
occ command that I need to fun to rescan the groupfolders trash?