• Resolved mirgcire

    (@mirgcire)


    I downloaded this plugin to try it out. It looks like it has what I need, but I decided I was not ready to use it yet, so I deactivated and deleted. However, while investigating a (hopefully) unrelated issue, I noticed 10 tables in the DB with the prefix of eme (answers, bookings, categories, etc). I tried installing, deactivating and deleting, a second time, but they continue to persist.

    Can you please help me purge these tables?

    Thanks!

    https://www.ads-software.com/plugins/events-made-easy/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Franky

    (@liedekef)

    Go into the eme settings, general tab, and select the option “Delete all EME data when upgrading or deactivating”. Then deactivate the plugin.

    Thread Starter mirgcire

    (@mirgcire)

    I recommend you set the default to “Yes” on this option.
    That would certainly make it more consistent with user expectations.

    Thanks for your quick response!

    Plugin Author Franky

    (@liedekef)

    It does not: sometimes people deactivate/reactivate for testing, and also for updating. So this option is “no” by default.

    Thread Starter mirgcire

    (@mirgcire)

    Okay, good point. I will withdraw my suggestion.

    Instead, I propose you make the plugin more consistent with other plugins and user expectation, by deleting the data when user deletes the plugin. Typically, a plugin will warn that the date will be lost forever and the user can then make their own choice.

    Plugin Author Franky

    (@liedekef)

    If wordpress was more straightforward in the docs concerning hooks and filters, I would’ve already done this. For now it’s always searching for the right hook (I just found this one:
    https://codex.www.ads-software.com/Function_Reference/register_uninstall_hook )
    and then the right way to add a warning to it, which means: check another plugin to see how they do it …

    For now this is low on my priority list, feel free to create a feature request on https://www.e-dynamics.be/bbpress for this.

    Plugin Author Franky

    (@liedekef)

    Ok, apparently just adding an uninstall.php with the correct code in it was sufficient. So I did just that ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Does not clean up DB on "delete"’ is closed to new replies.