Can I set up NC to delete items in trash bin after X amount of time

Using a recent version of NC: 21.x

Is there a way to set up NC to erase items found in the trash bin after X amount of time?

I looked around the settings in the user and admin sections, and did not anything of the sort.



Hi @smokinjo

You can set this up with the following configuration parameter in the config.php file…


I read over the description about what to do. Seems straight forward.

But, while I figured out that need to add it to the config file, does it matter where?
‘trashbin_retention_obligation’ => ‘auto’,

Do I just add it to the config file? Dos it mater where? Or, maybe it does not matter?



No it does not matter. But ‘trashbin_retention_obligation’ => ‘auto’ is not needed, since it is the default anyways. But make sure to set user quotas for your users. Otherwise it does not know, if space is needed.