File deletion notification



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

/* */
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"


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


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