Title: Delete Plugin
Last modified: August 20, 2016

---

# Delete Plugin

 *  Resolved [dev 2007](https://wordpress.org/support/users/puja_161/)
 * (@puja_161)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/delete-plugin-2/)
 * how i can delete the database after deleting plugin

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

 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/delete-plugin-2/#post-2119191)
 * 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](http://codex.wordpress.org/Function_Reference/register_deactivation_hook).
   I’m not sure if there is anything you can run on deletion rather than deactivation.
 *  Thread Starter [dev 2007](https://wordpress.org/support/users/puja_161/)
 * (@puja_161)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/delete-plugin-2/#post-2119277)
 * when i delete the plugin the database of plugin will automatically deleted
    do
   you have any idea
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/delete-plugin-2/#post-2119278)
 * I believe I answered that, or I very much misunderstand the question.
 *  Thread Starter [dev 2007](https://wordpress.org/support/users/puja_161/)
 * (@puja_161)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/delete-plugin-2/#post-2119279)
 * 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….
 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/delete-plugin-2/#post-2119280)
 * 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](https://wordpress.org/support/users/puja_161/)
 * (@puja_161)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/delete-plugin-2/#post-2119285)
 * 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [dev 2007](https://wordpress.org/support/users/puja_161/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/delete-plugin-2/#post-2119285)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
