Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Why uninstalling the following (empty) plugin results in error?

Here is my-plugin/my-plugin.php:

Plugin Name: My Plugin

and my-plugin/uninstall.php:


When I click 'Delete' and then confirm, I get the following error:

Plugin could not be deleted due to an error: Could not fully remove the plugin(s) my-plugin/my-plugin.php.

What's wrong here?

~/Sites/wordpress/wp-content/plugins/my-plugin $ ls -ll
total 16
-rwxrwxrwx@ 1 me  staff  34 13 Aug 21:43 my-plugin.php
-rwxrwxrwx@ 1 me  staff   6 13 Aug 21:44 uninstall.php
share|improve this question
which plugin you want to delete ? – amit Aug 13 '12 at 12:00
The plugin in question (the empty one). – Misha Moroshko Aug 13 '12 at 13:49
// my-plugin/uninstall.php what's that ? – amit Aug 13 '12 at 14:37
It's not part of the file. I updated the question. – Misha Moroshko Aug 13 '12 at 21:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.