Title: Plugin leaves database info behind after a plugin deletion.
Last modified: November 11, 2020

---

# Plugin leaves database info behind after a plugin deletion.

 *  Resolved [agod](https://wordpress.org/support/users/agod/)
 * (@agod)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/no-database-removal-in-plugin/)
 * You should incorporate data removal into the plugin. When plugin is deleted it
   does not delete database information.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [xootix](https://wordpress.org/support/users/xootix/)
 * (@xootix)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/no-database-removal-in-plugin/#post-13649979)
 * Plugin does not use database.
    It only takes two option keys to store its settings.
   Removing or keeping option keys is not going to make any difference.
 *  Thread Starter [agod](https://wordpress.org/support/users/agod/)
 * (@agod)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/no-database-removal-in-plugin/#post-13650147)
 * I deleted this WordPress plugin to install an older version but the new version
   continues to show on the front end.
 * Steps I have taken:
 * I deleted the plugin folder.
 * Searched the database for any tables left behind by the plugin. No tables.
 * Searched the plugins scripts to see how it connects to database. I searched for
   the terms $wpdb, set_option() and update_option(). I only found update_option()
   in this plugins scripts.
 * I found the following in different locations in this plugins folder:
 * update_option( $option_key, $savedOptions );
 * update_option( $this->tabs[ $tab_id ][ ‘option_key’ ], array() );
 * update_option( $option_key, $option_data );
 * update_option( ‘xoo_’.$this->slug.’_theme_templates_data’, $tempData );
 * update_option( ‘xoo-ml-before-2’, ‘yes’ );
 * update_option( $version_option, XOO_WSC_VERSION);
 * And this is where I am stuck… Does any of the above code store info in the database
   that would prevent me from getting the old version of the plugin back?
 * My research has me looking in the direction of _options table but I am not sure
   what to do there or if that is where I need to be…
 * How do I get the old version of this plugin installed?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin leaves database info behind after a plugin deletion.’ is closed
to new replies.

 * ![](https://ps.w.org/side-cart-woocommerce/assets/icon-256x256.gif?rev=3217170)
 * [Side Cart Woocommerce | Woocommerce Cart](https://wordpress.org/plugins/side-cart-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/side-cart-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/side-cart-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/side-cart-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/side-cart-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [agod](https://wordpress.org/support/users/agod/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/no-database-removal-in-plugin/#post-13650147)
 * Status: resolved