Cannot delete visits?

I installed Matomo on Plesk (Ubuntu 20.04). It looks all fine, but as I added all sites, tested visits, I want now also to delete those test visits not not mess with real visits, I run:

sudo su -
cd /var/www/vhosts/mydomain.com/matomo.mydomain.com
/opt/plesk/php/7.4/bin/php ./console core:delete-logs-data --dates=2021-04-10,2021-04-17

I get message in CLI that xxx visits are deleted (number is equal as appear on Dashboard). However, on dashboard are still all old data (???).

I run command againa and I have that 0 visits is deleted (logical).

Whats wrong what I’m doing?

Hi,

The dashboard shows you the reports Matomo generated, while the command only deletes the raw data.

You can tell Matomo to invalidate and recreate reports, but keep in mind that data will be lost that way if the raw data doesn’t exist anymore:
https://matomo.org/faq/how-to/faq_155/

Thanks for make it clear.