When the plugin is deleted (not just deactivated) via the WordPress UI, uninstall.php runs and:
- Drops all 19
omobile_*tables - Deletes all
omobile_*options fromwp_options - Removes the
manage_omobilecapability from all users and theomobile_managerrole - Deletes all
omobile_*cron events - Removes all
omobile_*transients
Deactivating the plugin (without deleting) leaves all data intact so it can be reactivated cleanly.
To keep data on deletion, add to wp-config.php before deleting:
phpdefine( 'OMOBILE_KEEP_DATA_ON_UNINSTALL', true );