Viewing 6 replies - 1 through 6 (of 6 total)
  • You want to delete the plugin’s part of the database?

    As a user, if the plugin doesn’t do it for you, you’d need to get into the database via PhpMyAdmin or similar and delete the plugin’s tables, $wpdb->options rows, etc. It could be complicated, depending on the plugin. As a plugin author, you can hook into the deactivation hook. I’m not sure if there is anything you can run on deletion rather than deactivation.

    Thread Starter dev 2007

    (@puja_161)

    when i delete the plugin the database of plugin will automatically deleted
    do you have any idea

    I believe I answered that, or I very much misunderstand the question.

    Thread Starter dev 2007

    (@puja_161)

    I m working on one plugin when i install the plugin database is automatically generated,then i want here that when i delete the plugin the database should be automatically deleted….

    I did answer that. You can run functions on plugin deactivation but I am not aware of any that you can run on plugin deletion, though if and only if someone deletes the plugin via the WordPress interface (rather than via ftp) there might be something you can do. On about line 841 or wp-admin/includes/plugin.php there is a action hook that might do it but I’m not sure. I only just found it three minutes ago.

    Thread Starter dev 2007

    (@puja_161)

    can u know any simple plugin which help me for making plugn

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

The topic ‘Delete Plugin’ is closed to new replies.