I’m using Nextcloud 12.0.3.
I’ve been testing the config parameter “trashbin_retention_obligation” but it’s not working like expected.
In my config.php I set as following (for testing purposes):
'trashbin_retention_obligation' => 1, 3,
But, deleted files older than 3 days are not permanentely deleted.
Nextcloud seems just to respect the thrash bin quota set on Trashbin.php (
DEFAULTMAXSIZE = 50; i.e 50% of my remaining account quota)
In my tests I change the date of my Linux server via
date -s to simulate the time passing.
When the trash bin quota is exceeded, Nextcloud do the cleaning and delete permanentely the older files inside trash until the quota is in your acceptable limit, ignoring the retention time.
On the other hand, even when the retention time is expired, if quota is whitin your limit, nothing happens. So, retention has no effect.
Furthermore, thrash bin has stranger behaviors.
For example, if you have execeed your thrash bin quota (e.g. deleting files and upload new ones filling the account again), the cleaning won’t run until the next day, and only after you upload or delete some file.
PS: I’ve set my cron job to run every minute for quick tests purposes.
Somene else noticed these same behaviors?