Uninstalling plugins does not remove their database tables
-
Hi,
I’ve been using WordPress for my site for 6 years. Over this time I’ve installed, used and uninstalled many plugins. I’ve noticed that not all plugins, if any, remove any tables they made in the WP database when they’re uninstalled. This has left me with a lot of orphaned tables, some of them large if for example they contain a site-wide scan for some purpose.
I’ve used the WPDBSpringClean plugin to do a search of my database and report on what it thinks are unused tables, which I want to get rid of. But, trying to find what these tables relate to is difficult. Googling for a table name (and also minus the “wp_” prefix) sometimes yields 0 results.
It would be helpful if there was a central list of database tables used by plugins, firstly so that people who are tidying up their database know exactly which plugin tables relate to which plugins, and secondly for developers as I suppose there’s an edge case where two plugins could use tables of the same name.
If not a central list, then a tool that can help us find this info, similar to the hotexamples website where I can look up where how functions are used. If plugin source were available and indexed as standard in text form, for all free plugins on the WP repository, then we could do a simple search on this data.
Thanks.
- The topic ‘Uninstalling plugins does not remove their database tables’ is closed to new replies.