Prompted when running core:delete-logs-data

When I run the following via shell

/www/matomo/console core:delete-logs-data --dates=2019-01-01,2021-02-14

I get the following prompt… therefore can not schedule this to run during the early morning hours…

Preparing to delete all visits belonging to ALL websites between 2019-01-01 00:00:00 and 2021-02-14 00:00:00.
You are about to delete log data. This action cannot be undone, are you sure you want to continue? (Y/N)

Any input on how I can bypass the prompt or add a force to the options? Not finding a force option in the manuals.

Currently running on 4.2.1 version with plans to update to 4.3 in June sometime.



Looking at the Matomo code:

adding --no-interaction to the command should do what you want.

1 Like