Skip to content

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

Closed
mattab opened this Issue Mar 3, 2009 · 4 comments

3 participants

@mattab
Piwik Open Source Analytics member
mattab commented Mar 3, 2009

Steps

  • 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
@anonymous-piwik-user

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.

@robocoder

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

@robocoder

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

@mattab
Piwik Open Source Analytics member
mattab commented Apr 28, 2011

(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
Something went wrong with that request. Please try again.