Title: Delete data when removing plugin
Last modified: August 30, 2016

---

# Delete data when removing plugin

 *  Resolved [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/delete-data-when-removing-plugin/)
 * The plugin works very well, thank you for it, but things would be much easier
   if removing the plugin would also delete the data.
 * When I now have trouble to log in as administrator (phone lost, broken etc.) 
   I rename the plugin folder via ftp, force the deactivation of the plugin by visiting
   the plugin page, then remove the plugin, re-install it, activate it – but then
   I’m locked out again. Apparently the data has survived.
 * The alternative method – create another admin account, log out, log in with the
   new account, remove the need to submit the code from the first admin, log out,
   log back in from the first admin, delete the temporary admin – is much more complicated
   and needs a second email address.
 * [https://wordpress.org/plugins/wordpress-2-step-verification/](https://wordpress.org/plugins/wordpress-2-step-verification/)

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

 *  Plugin Author [as247](https://wordpress.org/support/users/as247/)
 * (@as247)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/delete-data-when-removing-plugin/#post-6630550)
 * If you lost both access to your email/phone now only have that way to disable
   it, you have another option that is update data base in user meta table, you 
   need to update the meta field called “wp2sv_enable”
    The plugin is designed to
   protect all users on your site from illegal access, it’s not only for admin, 
   so erase plugin data can’t be simple like that. I will add backup code function
   in next version. So legal user will be not blocked by accidents
 *  Thread Starter [Christoph](https://wordpress.org/support/users/camthor/)
 * (@camthor)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/delete-data-when-removing-plugin/#post-6630551)
 * Thanks, I think backup codes will be useful.
 *  Plugin Author [as247](https://wordpress.org/support/users/as247/)
 * (@as247)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/delete-data-when-removing-plugin/#post-6630581)
 * Hi,
    Backup codes is now available 🙂 please upgrade now 🙂

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

The topic ‘Delete data when removing plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-2-step-verification.svg)
 * [WP 2-step verification](https://wordpress.org/plugins/wordpress-2-step-verification/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-2-step-verification/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-2-step-verification/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-2-step-verification/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-2-step-verification/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-2-step-verification/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [as247](https://wordpress.org/support/users/as247/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/delete-data-when-removing-plugin/#post-6630581)
 * Status: resolved