Server: Automatic cleaning for trash

Created on 12 Sep 2017  路  2Comments  路  Source: nextcloud/server

Expected behaviour

Please do automatic cleaning of the user's trashbin.
Data that in the trashbin eats a lot of disk space.
It is good to be able to change the lifetime of files in the trashbin via admins panel.

Most helpful comment

There two occ commands to manage the contents of the trash bin:

 trashbin:cleanup   Remove deleted files
 trashbin:expire    Expires the users trashbin

You can simply set up a cron job, to clean the trashbin...

A call on Ubuntu could look like this:
sudo -u www-data php /usr/share/nextcloud/occ trashbin:cleanup username1 username2

All 2 comments

There two occ commands to manage the contents of the trash bin:

 trashbin:cleanup   Remove deleted files
 trashbin:expire    Expires the users trashbin

You can simply set up a cron job, to clean the trashbin...

A call on Ubuntu could look like this:
sudo -u www-data php /usr/share/nextcloud/occ trashbin:cleanup username1 username2

Was this page helpful?
0 / 5 - 0 ratings