Wrodpress Could not remove the old plugin Issues

April 23, 2014 14.4k views
Hi, I am facing following issue, when i was trying to update this particular plugin on my centos droplet... The update process is starting. This process may take a while on some hosts, so please be patient. Updating Plugin WordPress SEO (1/1) Downloading update from https://downloads.wordpress.org/plugin/wordpress-seo.1.5.2.7.zip… Unpacking the update… Installing the latest version… Removing the old version of the plugin… Plugin update failed. An error occurred while updating WordPress SEO: Could not remove the old plugin. -------------------------- and also there is a error when try to delete that kind of particular plugin then it says.... Plugin could not be deleted due to an error: Could not fully remove the plugin(s) wordpress-seo/wp-seo.php. Please help me to get out this kind of issues. Thanks
1 comment
  • I am using Ubuntu 16.04, and I have my blog at /var/www/html/blog. I have also run into this issue. Previously, I had it under www-data:www-data ownership, with directory=0755 and file=0644, but I was not able to update or create new directories via the web interface. So I had to go back to 7777, and then I tried doing an update on a few plug-ins, like page builder, but it said failed to remove the old plugin. The update has completed successfully. I'm not sure what could be causing this problem.

3 Answers
You need to make sure that the folder permissions/ownership are correct.


chown -R apache:apache /var/www/wordpress/


Replace "/var/www/wordpress/" with the path to where you actually have wordpress. If you are using nginx instead of apache, use the nginx user as the owner.
Can you try remove it manually?
Have another answer? Share your knowledge.