Are you unable to delete the files because w3wp.exe prevents you from deleting the files from the Windows server?
The solution is “Restart your application pool from the IIS Server.”
- Go to IIS.
- Select your site and find the application pool name.
- Go to the application pool.
- Select your site’s application pool and restart.
It will release the locks on our site files and allow us to delete the files now.