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.

Thanks

Joseph

Hi @smokinjo

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

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#deleted-items-trash-bin

Hello

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?

Thanks

Joseph

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.