I am developing a wordpress plugin which involves creating a table in the wp database.

I have included an uninstall.php file to remove the table from the wp database when the user decides to delete the plugin from wp admin dashboard.

The thing is that,i want to know whether the uninstall.php file is executed during the update process if i provide an update through the wp plugin repository

1 Answer 1


No it does not. The uninstall.php file will only be run if a user deactivates the plugin and clicks the delete action.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.