Title: Custom PHP settings &#8211; can&#8217;t delete plugin
Last modified: October 27, 2019

---

# Custom PHP settings – can’t delete plugin

 *  Resolved [mdeerbon](https://wordpress.org/support/users/mdeerbon/)
 * (@mdeerbon)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/custom-php-settings-cant-delete-plugin/)
 * I can’t un-install Custom PHP settings.
    I had installed the plugin, thinking
   it might be able to help with php settings, (where I was having trouble uploading
   another plugin), but it didn’t. Now I want to uninstall it, and all it does is
   says “Deleting … ” (in red), but ultimately, isn’t deleted.

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

 *  Plugin Author [cyclonecode](https://wordpress.org/support/users/cyclonecode/)
 * (@cyclonecode)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/custom-php-settings-cant-delete-plugin/#post-12069954)
 * Hello
 * This seems very strange. I have not seen this behavior before. I will try setup
   a local installation and see if I can replicate this error and get back to you
   as soon as possible. What version of Custom PHP Settings are you using?
 * Regards,
    Krister
 *  Plugin Author [cyclonecode](https://wordpress.org/support/users/cyclonecode/)
 * (@cyclonecode)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/custom-php-settings-cant-delete-plugin/#post-12074483)
 * Hi again
 * I have looked into this and found out that the reason was that the callback registered
   using `register_uninstall_hook()` must be static. I have made an update that 
   solves this issue and it will be included in the next release.
 * Right now you can just remove any custom settings from your `.htaccess` file 
   manually and then remove the plugin folder i.e `wp-content/plugins/custom-php-
   settings` although this will leave any settings in the database.
    -  This reply was modified 6 years, 7 months ago by [cyclonecode](https://wordpress.org/support/users/cyclonecode/).
 *  Plugin Author [cyclonecode](https://wordpress.org/support/users/cyclonecode/)
 * (@cyclonecode)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/custom-php-settings-cant-delete-plugin/#post-12075102)
 * I have now added an updated which solves this issue. You should be able to simply
   update the plugin to version 1.2.6 and then you can delete it successfully.
 *  [sokichini](https://wordpress.org/support/users/sokichini/)
 * (@sokichini)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/custom-php-settings-cant-delete-plugin/#post-12075240)
 * [@cyclonecode](https://wordpress.org/support/users/cyclonecode/) It work! Thanks
    -  This reply was modified 6 years, 7 months ago by [sokichini](https://wordpress.org/support/users/sokichini/).

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

The topic ‘Custom PHP settings – can’t delete plugin’ is closed to new replies.

 * ![](https://ps.w.org/custom-php-settings/assets/icon-256x256.png?rev=2053893)
 * [Custom PHP Settings](https://wordpress.org/plugins/custom-php-settings/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-php-settings/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-php-settings/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-php-settings/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-php-settings/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-php-settings/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * 4 replies
 * 3 participants
 * Last reply from: [sokichini](https://wordpress.org/support/users/sokichini/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/custom-php-settings-cant-delete-plugin/#post-12075240)
 * Status: resolved