Whilst tidying up one of our VMM 2012 environments earlier I was having trouble removing a service template that had been created, the following error was appearing when I was hitting delete;
As far as I could see I had deleted any related service deployments and could see no services or VMs on any of the host clusters. I also tried removing the Service via the Powershell command; Remove-SCService
The fix was staring me in the face on the Service Template screen – if you highlight the template, and look in the ‘General Information’ section at the bottom you will see a ‘Services: <Service Name>‘ which is a hyperlink. Clicking this took me to one of my Host Groups and the Service was hidden away in here.
I deleted this, and was then able to remove the Service Template 🙂