In another answer I wrote about uninstall/activate/deactivate/upgrade routines. I guess most of the comments already tell it, but to sum it up:
- Uninstall: Remove everything, your plugin added
- Deactivate: Do nothing
- Activate: Do what your plugin needs.
On Uninstall the user simply wants to get rid of the plugin, so it’s fair to not leave any mess. Remove everything including tables, etc. Ok, if you got tables, you should maybe tell the user what your plugin is going to do. A simple alert()
should do the trick.
Related Posts:
- How to uninstall git-for-windows & re-install in new place?
- How to remove an app with active device admin enabled on Android?
- I am trying to install a site that a larger organization sent me, where do I start? [closed]
- Popup asking whether data should be removed on plugin uninstall
- Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php
- Where could I see uninstallation directives for a plugin?
- PHP script for wiping WP database and folder
- How to completely remove Python from a Windows machine?
- How to uninstall Eclipse?
- How to uninstall Anaconda completely from macOS
- How to uninstall Eclipse?
- How to uninstall Python 2.7 on a Mac OS X 10.6.4?
- Tensorflow: why ‘pip uninstall tensorflow’ cannot find tensorflow
- How to uninstall mini conda? python
- How to uninstall a Windows Service when there is no executable for it left on the system?
- how to uninstall MinGW and make cygwin ‘make’ as deafult make program with gcc 3.8.1
- How to Reinstall Broken npm
- What’s the opposite of ‘make install’, i.e. how do you uninstall a library in Linux?
- How do you uninstall all dependencies listed in package.json (NPM)?
- How can I remove a package from Laravel using PHP Composer?
- Removing all installed OpenCV libs
- How to completely uninstall Android Studio on Mac?
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- register_uninstall_hook() vs uninstall.php – which one is better way to handle plugin uninstallation script?
- Best practice way to delete user meta data during plugin uninstall?
- Uninstalling a plugin: delete all options with specific prefix
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Does plugin uninstall always put WordPress back into original state?
- wpdb::prepare was called incorrectly
- How can I delete options with register_uninstall_hook?
- Remove settings if theme is deleted?
- How does uninstalling WordPress plugins work?
- Deletion of shared options using uninstall.php
- Plugin uninstall: why run dbDelta after $wpdb->query($drop_sql)
- Is it possible to uninstall one plugin from within another plugin?
- Delete options from all blogs on plugin uninstall from a network/multisite
- Example of uninstaller routine to remove all custom theme options from wp_options
- Plugin Uninstall and Deactivate via Options Menu
- Downgrading a WP3.3.1 Network Install
- How to check what plugins used to be on a WordPress installation?
- Global variables during plugin activation , deactivation and uninstall operarations
- Query users by capability – uninstall/deactivate callback
- UnInstallation of a Plugin from a developers perspective – The correct and clean method
- One of my plugins broke when I tried to update it, how do I safely uninstall it?
- Clearing caches on plugin uninstall
- uninstall.php file in Plugin to clean DB
- Deleting Custom Posts & Meta Data on Uninstall
- How can I completely disable a WordPress installation?
- How to remove traces from widget during uninstallation
- uninstall.php does not appear to trigger when uninstalling my plugin
- Delete and perform a fresh install of WordPress
- Remove settings if theme is deleted?
- Plugin development: delete options when updating to a new version
- How to delete custom taxonomy terms in plugin’s uninstall.php?
- Custom message on plugin uninstall
- How to remove plugin-specific custom taxonomy terms when plugin is uninstalled?
- Does plugin’s uninstall.php file have access to the plugin ‘s object?
- Remove .htaccess portion upon plugin deactivation?
- Plugin retrieving results even after uninstallation
- Can my hooked uninstall class function access a global var declared in main plugin file?
- Can plugin2 uninstall plugin1 at the very beginning of plugin2’s installation?
- plugin uninstall function drop the tables, but shows errors on admin
- How Do I Uninstall a Current WordPress Theme and Install a Fresh Theme
- Uninstalling IntenseDebate
- delete widget upon uninstall
- How to delete Crisp Chat plugin completely?
- check_admin_referer fails on new AJAX plugin uninstall with “Are you sure you want to do this?”
- uninstall a theme programmaticlly
- How to remove links generated by SEO-smart-links?
- Scripts don’t enqueue after removing plugin