While working for a custom feature which is a third party component for SharePoint. Somehow, I wanted to removed and eventually delete this feature. Surprisingly, when I tried rectract this feature via Central Admin, I got a an error.
The solution cannot be removed when a job is scheduled or running.
After googling, someone had the same issue. What we have to do is follow these steps:
- Open command prompt and enumerate the running deployments by executing this command:
stsadm -o enumsdeployments
- Now, we obtain the jobid and cancel this deployement as follows:
stsadm -o canceldeployment -id 2529c788-971c-46a3-b69f-a2a0a1fcc851