Removing a plugin completely from the database
-
I want to reinstall the plugin from scratch.
Please give me a script for completely removing and cleaning the plugin database so that I can reinstall the plugin, since my database contains the wp_yoast_seo_meta table, which is no longer needed.
-
We are afraid to say that we don’t have any script available that will wipe out all the database entries and tables related to our plugin. If you really want to wipe out everything from the database, you’ll need to manually find the relevant tables and entries.
Make a plugin to clean up the database completely. According to the rules of WordPress, you must provide users of your plugin with its complete removal from the database. Otherwise it infringes on our rights.
According to the rules of WordPress, you must provide users of your plugin with its complete removal from the database. Otherwise it infringes on our rights.
Hi, Plugin Rep checking in. This is not correct.
We do not require plugins to clean up and remove things from the database. We strongly recommend it, but since many people do remove plugins to debug, it’s not actually that smart to nuke settings and database info every time.
We DO recommend your plugin have an option “delete all data and settings” though.
Also this doesn’t infringe on any rights that I’m aware of (you don’t have a legal right for plugins to delete their data from your database).
You yourself understand that if a plugin does not have the function of completely removing it from the database, in the end, after each installation of a new plugin and its removal, the database grows, which leads to slowdown of the site.
Hi @sfuma,
Just wanted to mention that you can find the details to completely uninstall Yoast SEO and all the associated data from your database in the “Complete Data Removal” section on this guide on the Yoast website: How Can I Uninstall My Plugin?.
This is not a complete removal of the plugin. Your article has no information on how to remove a plugin from tables: wp_options, wp_postmeta, wp_usermeta.
Make a “Complete plugin removal” function in your plugin.
Hi,
If you were to delete the plugin from your list of plugins in your WordPress dashboard and were to search the database for entries containing
wp_yoastand manually remove the data, it should remove all traces of the plugin.These entries are:
wp_yoast_indexable
wp_yoast_indexable_hierarchy
wp_yoast_migrations
wp_yoast_primary_term
wp_yoast_prominent_words
wp_yoast_seo_links
wp_yoast_seo_meta“Wpseo” is not your table entries? Don’t delete them?)
yoast-tables
wp_options-table-yoast-seo-2Hi @sfuma
We apologize for any misinformation.
In order to completely remove all traces of data in the plugin, you’ll need to:
1. Search the database for all entries containing
wpseoand manually remove the data.2. Search the database for entries containing
wp_yoastand remove the data. These entires include:wp_yoast_indexable
wp_yoast_indexable_hierarchy
wp_yoast_migrations
wp_yoast_primary_term
wp_yoast_prominent_words
wp_yoast_seo_links
wp_yoast_seo_metaWe’re going to be updating the Help Center article to reflect the correct information as well.
Why don’t you want to make the “Complete plugin removal” function, as it is, for example, implemented in the Wordfence Security plugin?
Yoast may not offer a separate plugin (or a built-in feature) to completely remove its data (say, from your database) for many reasons. Some logical, some not.
Rather than wrestling around with this topic, you may be better served if you read this excellent article (in addition to those provided above by Team Yoast) on how to remove Yoast completely.
Grab a cup of coffee (or tea) and “get ‘er done!”
Best wishes!
The topic ‘Removing a plugin completely from the database’ is closed to new replies.