I want to execute PrivacyManager.anonymizeSomeRawData via an API so that I can regularly anonymize IPs in the database.
How can that be done? I found ./console privacymanager:anonymize-some-raw-data, but not sure how to use it with parameters. Is there any documentation for that (https://developer.matomo.org/api-reference/reporting-api doesn’t mention the console command).
Bonus question: Which cron/script executes the scheduled anonymizations found in matomo_privacy_logdata_anonymizations?
I figured out you can run ./console privacymanager:anonymize-some-raw-data --anonymize-ip --date "2023-09-01,2023-09-30" this command.
The problem is, you still have to confirm it with “OK”. How to do this in a bash script so I can use it in a cron? Is there any --force parameter to skip the confirmation?