You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently WC and CC do not delete data / database tables when they are uninstalled. This can leave a lot of useless data clogging up the database.
Describe the solution you'd like
An option button that gives the user the choice of whether or not they want the data to be removed, set to "no" by default. An option to export the data (in a format that can be reimported) before removing it would also be useful.
Describe alternatives you've considered
It's possible to remove the data manually from the database but this should not be necessary and would be beyond the means of most end users.
Additional context
WC and CC both give a scary warning that data will be deleted but this doesn't happen. This warning is misleading.
Agreed this is a good idea. The current warning message is certainly misleading. It should reflect exactly what will happen, eg
If the box in settings is not ticked it could say: "All your products, records and settings will NOT be deleted from the database"
If the box is ticked in settings it could say: "WARNING. You have enabled the option in settings to delete your database tables. This will delete all your products, records and settings. Do you want to continue? Y/N"
This said bug stems from the WP/CP core for each plugin. See wp-admin/plugins.php
The expectation for this is that all plugins handle their data in the uninstall.php file in each individual plugin.
If we intend to proceed as above suggested by @simplycomputing, we need to tap the add_action('delete_plugin', $plugin_file ); that Fires immediately before a plugin deletion attempt in wp-admin/includes/plugin.php to have those rules set.
I do agree this needs doing. The message it currently gives is just wrong. But I also think this can wait until after beta1 at the very least. It's currently scheduled for 1.1.0 and at present, I'm happy to leave it at that.
Is your feature request related to a problem? Please describe.
Currently WC and CC do not delete data / database tables when they are uninstalled. This can leave a lot of useless data clogging up the database.
Describe the solution you'd like
An option button that gives the user the choice of whether or not they want the data to be removed, set to "no" by default. An option to export the data (in a format that can be reimported) before removing it would also be useful.
Describe alternatives you've considered
It's possible to remove the data manually from the database but this should not be necessary and would be beyond the means of most end users.
Additional context
WC and CC both give a scary warning that data will be deleted but this doesn't happen. This warning is misleading.
See also #136 (comment)
The text was updated successfully, but these errors were encountered: