All Plugins should hook on SitesManager.deleteSite and delete the data for the newly deleted website #585

mattab opened this Issue Mar 3, 2009 · 4 comments

3 participants

Piwik Open Source Analytics member


  • add hooks in SitesManager.deleteSite
  • review all existing data in the DB related to a given website
  • make sure all plugins listen to SitesManager.deleteSite and delete the website data from the DB

I think "low" priority isn't appropriate.

Deleting a site from database cut many many mb! Just think about the visit_log, and shrinking visit_log leads to a optimized archive process, smaller archives tables, a quicker db, etc.


(In [4028]) refs #585 - add SitesManager.deleteSite hook


(In [4031]) fixes #2148, refs #585

Piwik Open Source Analytics member

(In [4590]) Fixes #585 Now, every entity linked to a site is deleted when a site is deleted.
Only the logs and archives are not deleted, because it could result in severe data loss. Better deal with this later on..

@mattab mattab added this to the Future releases milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment