Came across another MOSS Gotcha today. When we tried to remove a form from Central Admin (Application Management Tab --> Manage form templates (under InfoPath Forms Services), form status changed to "deleting". Even after an hour the status was still showing up as deleting.
Here is what I had to do to clean it up.
1. Run the stsadm command to look at the formtemplates on the server
stsadm -o enumformtemplates
This will show you a list of all the formtemplates with their formid (which is important since we will need the formid later.) You should see a row per form with the form name and the form id. (I have highlighted the form id for the first form in red below)
CollectSignatures_Sign_1033.xsn urn:schemas-microsoft-com:office:infopath:workflow:CollectSignatures-Sign:1033
Expiration_Complete_1033.xsn urn:schemas-microsoft-com:office:infopath:workflow:Expiration-Complete:1033
RR_OOB_WrapItUp_1033.xsn urn:schemas-microsoft-com:office:infopath:workflow:OOB-WrapItUp:1033
ReviewRouting_Assoc_1033.xsn urn:schemas-microsoft-com:office:infopath:workflow:ReviewRouting-Assoc:1033
…
2. Run the stsadm command to remove the form template
stsadm -o removeformtemplate –formid “enter the formid here”
This actually failed with the message
“A deployment or retraction is already under way for the solution "c840c11c-ca88-70ab-9666-c8518ce3b91d.wsp", and only one deployment or retraction at a time is supported.”
3. Open up your browser and Go to Central Admin --> Operations Tab --> Timer Job Definitions (under Global Configuration)
You should see a Job definition similar to: “Windows SharePoint Services Solution Retraction for "c840c11c-ca88-70ab-9666-c8518ce3b91d.wsp"
Click on the job definition and on the next page, delete this job definition.
4. Now go back to the command line and run the last stsadm command again.
stsadm -o removeformtemplate –formid “enter the formid here”
If you see this message “The form template has been successfully initiated for removal from the farm. It may take a few minutes for the operation to complete”, it means everything worked and another timer job was successfully created to remove the form template. You can decide to wait for the job to run or use the next step to force running the job.
5. Run the stsadm command to execute the timer job
stsadm.exe -o exeadmsvcjobs
6. Go back to Central Admin and make sure the form template is no longer listed in the Manage Form Templates page.