Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in FAQ: Delete visits using SQL - not everything is deleted #17498

Open
uok opened this issue Apr 25, 2021 · 4 comments
Open

Error in FAQ: Delete visits using SQL - not everything is deleted #17498

uok opened this issue Apr 25, 2021 · 4 comments
Labels
c: Website matomo.org For issues related to our matomo.org website.

Comments

@uok
Copy link

uok commented Apr 25, 2021

FAQ: https://matomo.org/faq/how-to/faq_20184/
Section "Delete visits using SQL query"
Code "delete all data for a given website"

After running the code with e.g. log_visit.idsite = 1, everything is deleted from all tables except entries in table log_action.
There are many entries left that belong to this site. How can I delete them?
From what I can understand is that info is linked via idaction_name and idaction_url to this table.

What is the correct SQL code for this task?

It would be a lot better, if after a user deletes a website from Matomo GUI also the log data, reports, etc. are deleted from the database. I did not expect the need for this manual step after confirming "Deleting a website will delete all log data that has been collected for it. This action is permanent and cannot be undone." in the GUI.

@flamisz
Copy link
Contributor

flamisz commented Apr 27, 2021

Hi @uok, thanks for creating this issue. I tested the SQL and indeed it does not emptying the log_action table, just deletes rows from it.

It's not a code related issue, I will discuss with the team what is the best way to solve this so we can hopefully get things sorted and working for you.

@flamisz flamisz added Bug For errors / faults / flaws / inconsistencies etc. and removed Bug For errors / faults / flaws / inconsistencies etc. labels Apr 27, 2021
@sgiehl sgiehl added the c: Website matomo.org For issues related to our matomo.org website. label Apr 27, 2021
@uok
Copy link
Author

uok commented Jun 3, 2021

@flamisz , can you please provide SQL commands for fixing? Thanks!

@flamisz
Copy link
Contributor

flamisz commented Jun 3, 2021

Hi @uok,

unfortunately, currently, we can't provide an SQL command that emptying log_action table with the others.

@uok
Copy link
Author

uok commented Apr 29, 2022

Is this fixed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Website matomo.org For issues related to our matomo.org website.
Projects
None yet
Development

No branches or pull requests

4 participants