Support » Plugin: Events Manager » Uninstallation issues: Identifying left behind table items

  • Resolved lgpref


    Hi EM folks,

    A while back I installed your plugin for some testing, and then uninstalled it.
    However, I’m doing some deep cleaning of our databases, and I’m finding lots of rows in the wp_options table that look suspiciously like they are from EM, but I’m not sure. Can you help by telling me common prefixes or showing a list of the options and database tables that EM uses?

    I found over 300 autoloading items in a wp_options table that have prefixes of “dbem_events_”

    And, database tables with em_ as their prefix. (those are more obvious.)

    Are they yours? Thanks for any light you can shine. Our site users will thank you when our site will be much faster.

    (Nothing against Events Manager – it’s just not what we’re using on this project.)

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,
    EM User here ๐Ÿ™‚

    Yes, those options are indeed from Events Manager. If you add this to your theme’s functions.php all options will be deleted in bulk:

    function remove_plugin() {
    global $wpdb;
    $plugin_options = $wpdb->get_results( "SELECT option_name FROM $wpdb->options WHERE option_name LIKE 'em_%'" );
    	foreach( $plugin_options as $option ) {
        	delete_option( $option->option_name ); }

    After that, change “em_%” to “dbem_%” for the others.

    Don’t forget to delete the function when you’re done.

    Thread Starter lgpref


    Thank you for confirming the source of the tables. (the only way i could figure it out myself would to reinstall, which seemed less than productive in my current situation ๐Ÿ™‚ Consider closed, unless the EM support folks have anything to add?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uninstallation issues: Identifying left behind table items’ is closed to new replies.