• Resolved ACEkin

    (@acekin)


    I used the plugin to see what it does and whether it would benefit my site. Now, I want to remove it. However, I want to disable and delete the plugin and would like all its traces to be deleted as well. I searched for a setting for this in the plugin but could not find one. Could you please advise what to do to remove all the related tables and records are also removed.

    By the way, one reason behind this question is this. I disabled and deleted the plugin. Then, decided to reinstall and search for a total cleaning option. To my surprise, all the media showed what Imagify did, compressions, etc. as if I have never removed it. I now know that not everything about the plugin and its work is deleted which I would like to achive.

    Thank you,

    Cemal

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author WP Media

    (@wp_media)

    For the reference, as we resolved this via our ticket system, we are sending the guide:

    You can use the following to create script and run it only once:

    add_action( 'init', function() {
    
    $deleted1 = delete_metadata( 'post', '', '_imagify_status', '', true );
    $deleted2 = delete_metadata( 'post', '', '_imagify_optimization_level', '', true );
    $deleted3 = delete_metadata( 'post', '', '_imagify_data', '', true );
    if ( $deleted1 || $deleted2 || $deleted3 ) {
        wp_cache_set( 'last_changed', microtime(), 'posts' );
    }
    })

    Make sure to make a full backup before doing this.

    You can use it as a custom plugin (this can be helpful https://docs.wp-rocket.me/article/142-how-to-make-a-custom-mu-plugin ) and run it only once. Then delete it and check if images can be optimized.

    Or you can use this MySQL command directly:

    DELETE FROM 'postmeta' where meta_key = '_imagify_status' or meta_key = '_imagify_optimization_level' or meta_key = '_imagify_data'

    • This reply was modified 4 years, 3 months ago by WP Media.
    Thread Starter ACEkin

    (@acekin)

    And, the MySQL command worked like a charm at the time. Thank you. I am glad you made it available to others who may need it as well.

    Cemal

    • This reply was modified 4 years, 3 months ago by ACEkin.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How best to delete the plugin with everything removed’ is closed to new replies.