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

Deleting site using HTTP API don't delete associated data #10007

Closed
mrjoops opened this issue Apr 5, 2016 · 1 comment
Closed

Deleting site using HTTP API don't delete associated data #10007

mrjoops opened this issue Apr 5, 2016 · 1 comment
Assignees
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Milestone

Comments

@mrjoops
Copy link

mrjoops commented Apr 5, 2016

I don't know if it's an expected behavior, but as I was using the SitesManager.deleteSite method of the HTTP reporting API, I was surprised by the speed of the deletion.
After some research, I found that only pure site data were deleted, whereas logs and archives were not (and there is no foreign keys with cascade delete).
IMHO logs and archives data without any site associated are not very useful.

@tsteur
Copy link
Member

tsteur commented Apr 5, 2016

We delete some associated data like scheduled reports, some settings etc but not any logs which is currently on purpose. You could probably use commands like ./console core:delete-logs-data --idsite=$idSite to delete logs. I believe there is no command yet to delete archives for a specific site. It is documented here on how to do this on database level http://piwik.org/faq/how-to/faq_73/

We should add some documentation to the API method description that it does not delete any associated logs and archive data and link to the FAQ

@tsteur tsteur added Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement. c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. labels Apr 5, 2016
@tsteur tsteur added this to the 2.16.2 milestone Apr 5, 2016
@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Apr 5, 2016
@tsteur tsteur self-assigned this Apr 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Platform For Matomo platform changes that aren't impacting any of our APIs but improve the core itself. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Help wanted Beginner friendly issues or issues where we'd highly appreciate community's help and involvement.
Projects
None yet
Development

No branches or pull requests

2 participants