Support » Plugin: Safe Redirect Manager » Feature Request: Create Uninstall Process — Clean Up Database

  • Hey there!

    We had a use case where we needed to uninstall the plugin to ensure no redirections were happening anymore within a staging environment. During that time when the plugin had gone through the uninstallation process, it looks like it left all of its data in the database.

    We had to run the following commands:

    delete from wp_postmeta where post_id in (select id from wp_posts where post_type='redirect_rule');

    deleted ~4500 entries.

    Then

    delete from wp_posts where post_type = "redirect_rule";

    deleted ~900 entries.

    Ideally, the plugin, when uninstalled would clear out all the work it had done, including database entries.

  • The topic ‘Feature Request: Create Uninstall Process — Clean Up Database’ is closed to new replies.