Maybe the next method will work (also for removing the computer from a Homegroup):
1. Delete all files in directory C:\ProgramData\Microsoft\Crypto\RSA\MachineKeys. You also can rename this directory (p.e. in 'MachineKeys.old') and create a new directory 'MachineKeys'. To delete the files in the directory you need certain administrator rights. Eventually you can download from internet a (register)file to get the needed rights for deleting a file. Search in Google ‘Take Ownership windows 7 download’. I suppose you have to activate the 'Take Ownership' routine for each file you want to delete. If you have the needed rights, delete the files in the directory 'MachineKeys'.
2. Restart your computer.
3. Start the Troubleshooter Homegroup (Configurationscreen -> Homegroup). (I don't know what's the real name of the program and it's location in english). Choose within the troubleshooter also the network control option, if you are asked so.
4. Start services.exe. For instance by pressing the Start-button on the left lower corner in the taskbar. Typ ‘services’ in the searchwindow ‘Programs and files search’ and press [ENTER].
5. Choose op ‘Services (lokaal)’.
6. Start in the following order the services:
- Peer Networking Identity Manager
- Peer Name Resolution Protocol
- Peer Networking Grouping
You can start the services by clicking the right mousebutton, while standing on the service, and choose for 'Start'. (When the service isn't started already).
Next follow some extra steps to delete the homegroup, if you want so.
7. Try to delete the homegroup from the computer. If that doesnt work yet, run once again the Trouble Shooter Homegroep (inc. network control). Perhaps you can remove the computer bu then from the homegroup. At least as you want to do so.