Title: Plugin Deactivation &amp; Deletion Does Not Remove Meta Data
Last modified: July 2, 2017

---

# Plugin Deactivation & Deletion Does Not Remove Meta Data

 *  Resolved [pyoil](https://wordpress.org/support/users/pyoil/)
 * (@pyoil)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/plugin-deactivation-deletion-does-not-remove-meta-data/)
 * I uninstalled the plugin and deleted it. But the meta data and the associated
   fields created by the plugin in the database still exists. How do I purge all
   data?

Viewing 1 replies (of 1 total)

 *  [Thomas Patrick Levy](https://wordpress.org/support/users/thomasplevy/)
 * (@thomasplevy)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/plugin-deactivation-deletion-does-not-remove-meta-data/#post-9285824)
 * [@pyoil](https://wordpress.org/support/users/pyoil/),
 * I am little by little improving our uninstall process. This is one of those things
   that I know really matters but we’re a small team (I do 100% of the dev) and 
   my users don’t care about uninstall scripts, only those who don’t like LifterLMS
   and, yes, you’re important too and I don’t intend to screw your database up but
   I am also almost always at absolute capacity simply trying to keep up with support.
   Please understand and accept my apologies for this inconvenience.
 * If you add the following to your wp-config.php file and then deactivate LifterLMS—
   most options and some content created by LifterLMS will be deleted upon plugin
   deactivation:
 * `define( 'LLMS_REMOVE_ALL_DATA', true );`
 * After deactivating you can then remove that from your config file.
 * As far as deleting other content:
 * 1) Delete custom posts from your wp_posts table: course, lesson, llms_quiz, llms_question,
   llms_membership, llms_access_plan
 * 2) Delete custom tables — anything that starts with “wp_lifterlms_” can be safely
   deleted
 * 3) Theres is a ton of postmeta data that will be left behind. I wish there was
   a foolproof way to do this (part of the reason why I don’t have a great uninstall
   script yet is it is a bit difficult to idenfity)…
 * Anything with the meta_key starting with `_llms` can be deleted. Though, a quick
   SQL delete can purge those.
 * As always, back up before deleting stuff (just in case).
 * Hope that helps and, again, I’m sorry!

Viewing 1 replies (of 1 total)

The topic ‘Plugin Deactivation & Deletion Does Not Remove Meta Data’ is closed to
new replies.

 * ![](https://ps.w.org/lifterlms/assets/icon.svg?rev=2034507)
 * [LifterLMS - WP LMS for eLearning, Online Courses, & Quizzes](https://wordpress.org/plugins/lifterlms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/lifterlms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/lifterlms/)
 * [Active Topics](https://wordpress.org/support/plugin/lifterlms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/lifterlms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/lifterlms/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Thomas Patrick Levy](https://wordpress.org/support/users/thomasplevy/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/plugin-deactivation-deletion-does-not-remove-meta-data/#post-9285824)
 * Status: resolved