Clean Database after delete Rankmath

#594354
  • Resolved Anonymous
    Rank Math free

    How can I clean the database if I already deleted the Rankmath Pro plugin. A new installation is not possible because of PHP.

    Thank you for help
    Peter

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hello,

    Thank you for reaching out to Rank Math support.

    It sounds like you want to completely remove Rank Math from your site and clean your database of any traces of the plugin. If that’s the case, here’s what you need to do:

    1. First, make sure Rank Math is still active on your site before you proceed.
    2. Next, add a small piece of code to your site that will tell Rank Math to erase all its data when you uninstall & delete it. You can copy and paste this code:
      /**
       * Filter to remove Rank Math data from the database
       */
      add_filter( 'rank_math_clear_data_on_uninstall', '__return_true' );

      If you’re not sure how to add the code, please check out this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    3. Then, go to your WordPress dashboard and uninstall and delete the Rank Math plugin as usual. This will trigger the code to run and wipe out everything related to Rank Math from your database.
    4. Finally, you can remove the code from your site if you don’t need it anymore.

    We hope this helps you achieve what you want. If you have any other questions or issues, please let us know. We’re always happy to help.

    Thank you for choosing Rank Math!

    Anonymous
    Rank Math free

    Dear Great,
    >> First, make sure Rank Math is still active on your site before you proceed.
    the plugin is deleted.
    A new installation is not possible because of PHP.

    Hello,

    In this case, the process becomes manual and quite cumbersome but we can gladly provide the places where the data is saved.

    1. The options are all saved in the default options table and are all prefixed by rank-math so you could potentially create an SQL query to look for those words using the %LIKE% operator and delete those.

    2. All the tables for our plugin start with rank_math so if you see any tables in the database with those names they can be deleted.

    3. As for the postmeta data, you need to find the entries in the respective tables (post, user, term) and use the same SQL query we mentioned in #1 to get the data from our plugin to delete from those 3 tables.

    Don’t hesitate to get in touch if you have any other questions.

    Anonymous
    Rank Math free

    Cool Idea elsa qazi 😉

    Anonymous
    Rank Math free

    Thank you!

    Hello,

    Apologies for the spam comment. We removed the comment from that account.

    However, can you please confirm if the issue is resolved for you?

    Looking forward to hearing back from you.

    Thank you.

    Anonymous
    Rank Math free

    Dear Md. Sakib Khandaker
    >> Apologies for the spam comment. We removed the comment from that account.
    it wasn’t just spam it was also a solution 🙂
    >> However, can you please confirm if the issue is resolved for you?
    Yes, thank you!

    Hello,

    Glad that helped!

    If you have any additional questions in the future don’t hesitate to get in touch.

    We are here to help.

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

The ticket ‘Clean Database after delete Rankmath’ is closed to new replies.