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"