Delete events and actions without deleting visits?

I’d like to remove all event actions with a specific value (for instance ‘Form loading error’). The docs and some forum threads mention we can use the GDPR tools for that, but I can only delete complete visits that way. I’d like to keep the visits and just remove the events.

I’d be okay with doing that via PHP MyAdmin, but I wouldn’t know what to do there exactly.

Surely someone has found an easy way for this?

(I want this for a few reasons: just to clean up the overview under Behaviour > Events, to make the database a bit smaller and because I made mistakes naming events, so that the data is not reliable.)

1 Like

If you only want to remove specific event actions and keep the visits, you’ll need to do it directly in the database. In phpMyAdmin you can filter the matomo_log_event table by the event name or value and delete only those rows. Just make sure you back up your database first so you can restore it if anything goes wrong. This won’t affect the visits, only the event entries.