File deletion notification

client
client-development

#1

Hello,
In our system we need to programmatically delete 7 days or older files every day (we do it with crontab).


/* clear7d.sh */
#/bin/bash
find /var/owncloud/*/files/* -type f -mtime +7 -delete
occ files:scan --all -q

When this scripts executes every 24 hours the user is prompted with this:

I must avoid that choice and default it to "Remove all files"


#2

The promptDeleteAllFiles described in the following documentation should do the trick:

https://doc.owncloud.org/desktop/latest/advancedusage.html#configuration-file


#3

Thanks a lot for the answer, i read the docs but i didn't notice that option