Please delete your data from DB on uninstall
-
Due to WordPress plugins handbook recommended to remove options from
_optionstable. (Here is the link https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/ ).Your plugin may need to do some clean-up when it is uninstalled from a site.
A plugin is considered uninstalled if a user has deactivated the plugin, and then clicks the delete link within the WordPress Admin.
When your plugin is uninstalled, you’ll want to clear out any plugin options and/or settings specific to the plugin, and/or other database entities such as tables.
Less experienced developers sometimes make the mistake of using the deactivation hook for this purpose.
But your plugin leave a lot of junk inside
_optionstable!! This is not good. I don’t want trash in my DB when I don’t want the plugin anymore (uninstalled).So, please delete them on plugin uninstall OR at least has an option (button) to manually delete them before uninstall.
The topic ‘Please delete your data from DB on uninstall’ is closed to new replies.