Title: Remove data after plugin deletion
Last modified: September 12, 2024

---

# Remove data after plugin deletion

 *  Resolved [techiebraj](https://wordpress.org/support/users/techiebraj/)
 * (@techiebraj)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/remove-data-after-plugin-deletion/)
 * Hi team,
 * How to completely remove all the data of hCaptcha after plugin deletion?
 * Thanks!

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

 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-data-after-plugin-deletion/#post-18015358)
 * You can delete the following options via wp-cli.
 *     ```wp-block-code
       wp option delete hcaptcha_settingswp option delete hcaptcha_versionswp option delete hcaptcha_login_data
       ```
   
 *  Thread Starter [techiebraj](https://wordpress.org/support/users/techiebraj/)
 * (@techiebraj)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-data-after-plugin-deletion/#post-18015377)
 * Thanks for the details 🙂
 * When i paste this command in PhpMyadmin>SQL, its showing one error; [https://prnt.sc/fbUAIaZ7o7HN](https://prnt.sc/fbUAIaZ7o7HN)
 * Can you please provide me the SQL query to wipe all the hCaptcha database entries?
 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-data-after-plugin-deletion/#post-18015383)
 * Assuming that your tables’ prefix is `wp_`, the following MySQL request should
   work
 *     ```wp-block-code
       DELETE FROM wp_options WHERE option_name IN ('hcaptcha_settings', 'hcaptcha_versions', 'hcaptcha_login_data');
       ```
   
 *  Thread Starter [techiebraj](https://wordpress.org/support/users/techiebraj/)
 * (@techiebraj)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-data-after-plugin-deletion/#post-18015390)
 * Thanks. So, the above query cleaned up the wp-options entries. I see the:-
 *     ```wp-block-code
       wp_hcaptcha_events (table), hcaptcha_settings_network_wide (Options)
       ```
   
 * Still there. Needs complete cleaning please 🙂
    -  This reply was modified 1 year, 8 months ago by [techiebraj](https://wordpress.org/support/users/techiebraj/).
    -  This reply was modified 1 year, 8 months ago by [techiebraj](https://wordpress.org/support/users/techiebraj/).
    -  This reply was modified 1 year, 8 months ago by [techiebraj](https://wordpress.org/support/users/techiebraj/).
    -  This reply was modified 1 year, 8 months ago by [techiebraj](https://wordpress.org/support/users/techiebraj/).
 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-data-after-plugin-deletion/#post-18015408)
 * Oh, I forgot about the last option and the table. 😅 Nothing else, you are done.
 * Thanks.
 *  Plugin Contributor [kaggdesign](https://wordpress.org/support/users/kaggdesign/)
 * (@kaggdesign)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-data-after-plugin-deletion/#post-18015411)
 * I will add the code to cleanup data upon deletion of the plugin.
 *  Thread Starter [techiebraj](https://wordpress.org/support/users/techiebraj/)
 * (@techiebraj)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/remove-data-after-plugin-deletion/#post-18015415)
 * Thant would be great, thank you 🙂

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

The topic ‘Remove data after plugin deletion’ is closed to new replies.

 * ![](https://ps.w.org/hcaptcha-for-forms-and-more/assets/icon.svg?rev=3026321)
 * [hCaptcha for WP](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hcaptcha-for-forms-and-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/)
 * [Active Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hcaptcha-for-forms-and-more/reviews/)

## Tags

 * [cleanup](https://wordpress.org/support/topic-tag/cleanup/)

 * 7 replies
 * 2 participants
 * Last reply from: [techiebraj](https://wordpress.org/support/users/techiebraj/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/remove-data-after-plugin-deletion/#post-18015415)
 * Status: resolved