I'm using the Windows hosting on Godaddy and I cannot update plugins through the WordPress control panel. I've found that WordPress successfully deletes the old plugin files, but it seems that Godaddy takes a very long time to actually process the request to delete the folder (15-minutes). So when WordPress tries to recreate the folder again, it fails. After some time, the folder will be actually deleted and I can install the plugin again.
I'm guessing this is more of a Godaddy problem than a WordPress one and I intend to call customer support, but I'd like to go armed with information. How does WordPress delete the old plugin? Does it just delete the files then delete the folder? What php function does it use to delete the folder?