Title: Error while deactivate
Last modified: January 9, 2024

---

# Error while deactivate

 *  [yorchalonso](https://wordpress.org/support/users/yorchalonso/)
 * (@yorchalonso)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/error-while-deactivate/)
 * Hi,
 * I am trying to deactivate Wordfence Security plugin in order to clean the database(
   disk consumption is really high). When I try to deactivate, I receive the error“
   Se ha producido un error inesperado al intentar configurar Wordfence para que
   borre sus datos cuando se desactive.” (“An unexpected error occurred when trying
   to configure Wordfence to delete its data when deactivated.”). Could you help
   me to clean the database or deactivate the plugin?
 * Regards,
 * Jorge

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

 *  Plugin Support [wfpeter](https://wordpress.org/support/users/wfpeter/)
 * (@wfpeter)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/error-while-deactivate/#post-17329637)
 * Hi [@yorchalonso](https://wordpress.org/support/users/yorchalonso/), thanks for
   reaching out.
 * From the sounds of things, this error is coming before you’re presented with 
   a “Deactivate Wordfence” modal window after hitting “Deactivate” on **WordPress
   > Plugins > All Plugins**. The modal would ask whether you wanted to keep or 
   remove Wordfence tables/data.
 * Considering the nature of your initial problem, tables growing to a large size
   could be the result of incorrect database permissions or WP Crons failing. I 
   say this because Wordfence should truncate certain tables after a scan, for example.
 * Do you see any database permissions issues or overdue crons on your **Wordfence
   > Tools > Diagnostics** page?
 * Thanks,
   Peter.
 *  Thread Starter [yorchalonso](https://wordpress.org/support/users/yorchalonso/)
 * (@yorchalonso)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/error-while-deactivate/#post-17329816)
 * Hi Peter,
 * As you are saying, I am receiving the error after hitting Deactivate Wordfence
   in “All plugins”. I am selecting the second option (delete all data but maintain
   security tables). On Diagnostics page I can see that all MySql the privileges
   are OK. I am worried about this data tables:
 * Name Engine Rows Avg_row_length Data_length Index_length
   wp_wfconfig InnoDB 275
   255095066 70151143424 0wp_wffilemods InnoDB 42315 533 22593536 0wp_wfhits InnoDB
   1172 1803 2113536 212992wp_wfknownfilelist InnoDB 43437 229 9977856 0wp_wflogins
   InnoDB 746 263 196608 65536wp_wfstatus InnoDB 943 1129 1064960 98304
 * Thanks,
 * Jorge
    -  This reply was modified 2 years, 5 months ago by [yorchalonso](https://wordpress.org/support/users/yorchalonso/).
 *  Thread Starter [yorchalonso](https://wordpress.org/support/users/yorchalonso/)
 * (@yorchalonso)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/error-while-deactivate/#post-17344100)
 * Hi Peter!
 * Could you help me?
 * Regards!

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

The topic ‘Error while deactivate’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [yorchalonso](https://wordpress.org/support/users/yorchalonso/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/error-while-deactivate/#post-17344100)
 * Status: not resolved