Title: LLMS_REMOVE_ALL_DATA does not work
Last modified: November 9, 2017

---

# LLMS_REMOVE_ALL_DATA does not work

 *  Resolved [Kevin McClellan](https://wordpress.org/support/users/crazywpgeek/)
 * (@crazywpgeek)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/llms_remove_all_data-does-not-work/)
 * I’m moving my membership site to a different sub-folder and need to remove data
   from the wp-database for the old site.
 * I have inserted this code into my wp-config.php file in the proper location: 
   [https://lifterlms.com/docs/remove-lifterlms-data-plugin-uninstallation/](https://lifterlms.com/docs/remove-lifterlms-data-plugin-uninstallation/)
 * When I try to delete the plugin I just see this: [https://www.screencast.com/t/MghVBisYLVd](https://www.screencast.com/t/MghVBisYLVd)
   “
   Deletion Failed: internal server error”
 * When I remove the line of code from the wp-config.php file then I can remove 
   the plugin, but the data doesn’t get removed from the database.
 * I’m using latest WP and lifter LMS versions.
 * Please advise how to get this working properly.

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

 *  Thread Starter [Kevin McClellan](https://wordpress.org/support/users/crazywpgeek/)
 * (@crazywpgeek)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/llms_remove_all_data-does-not-work/#post-9672128)
 * [@thomasplevy](https://wordpress.org/support/users/thomasplevy/) or anyone else
   want to take a stab at this?
 * Here is a gist with the configuration details as well as first few lines of wp-
   config.php showing where I added the code
    [https://gist.github.com/optimizegeek/f1f0d8cb27169d6bd5f6b0254881542b](https://gist.github.com/optimizegeek/f1f0d8cb27169d6bd5f6b0254881542b)
    -  This reply was modified 8 years, 7 months ago by [Kevin McClellan](https://wordpress.org/support/users/crazywpgeek/).
 *  [Thomas Patrick Levy](https://wordpress.org/support/users/thomasplevy/)
 * (@thomasplevy)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/llms_remove_all_data-does-not-work/#post-9672159)
 * [@crazywpgeek](https://wordpress.org/support/users/crazywpgeek/),
 * Sorry about this. I switched out the role removal function a few weeks ago and
   missed that the roles class requires the post types class and that class isn’t
   included in the uninstall file.
 * If you add this code after line 26 of uninstall.php you’ll be good to go:
 * `include_once( dirname( __FILE__ ) . '/includes/class.llms.post-types.php' );`
 * I’ll fix this in our next release too, but didn’t want to make you wait any longer
   since it’s a quick fix.
 * Best (and sorry again),
 *  Thread Starter [Kevin McClellan](https://wordpress.org/support/users/crazywpgeek/)
 * (@crazywpgeek)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/llms_remove_all_data-does-not-work/#post-9672182)
 * Thanks 🙂 Worked like a champ.

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

The topic ‘LLMS_REMOVE_ALL_DATA does not work’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Kevin McClellan](https://wordpress.org/support/users/crazywpgeek/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/llms_remove_all_data-does-not-work/#post-9672182)
 * Status: resolved