I have tried to find some information on how to delete reports for one day and for one siteid. I think its not possible with the console or via the API. Maybe the only way is to “tamper” the database.
to be honest, GDPR and options in the API is not what I was looking for. I would like to delete all the reports for the one specific day for one specific siteId.
During the migration process something went wrong with importing the logs and as a result, the data in the report is far from the reality. I am trying to fix this problem.
Maybe I should delete reports from the database but I am wondering if it causes some problems.
It is bit surprising that Matomo console do not give an opportunity for deleting reports for one day and for one site…
Have you found a solution yet?
I have the same problem that I got strange data for one day while importing, but I haven’t found a solution to just delete everything for this day.
I can’t define a specific date when using the plugin. Only last month or longer.
I tried it manually, but nothing happens.
./console core:invalidate-report-data --dates=2022-04-28,2022-04-29 --sites=2
INFO [2022-05-05 08:43:46] 7116 Invalidating day periods in 2022-04-28,2022-04-29 [segment = ]...
INFO [2022-05-05 08:43:46] 7116 Invalidating week periods in 2022-04-28,2022-04-29 [segment = ]...
INFO [2022-05-05 08:43:46] 7116 Invalidating month periods in 2022-04-28,2022-04-29 [segment = ]...
INFO [2022-05-05 08:43:46] 7116 Invalidating year periods in 2022-04-28,2022-04-29 [segment = ]...
It says this, but the charts won’t change, even after waiting some time (a day or more).
Just to be sure: Are the raw data OK (visits logs), or do you want to reset the reports data (eg. total number of visits, page views, events… on a day)?
My problem is, I imported Data from Google Analytics. There was a problem at Googles site, so I have wrong data → so i believe also the raw data is wrong.
I would like to delete all the data for this one invalid day (and if possible i would like to import some data for this day from a differen matomo-site).