Unable to delete Virtual Server from Hyper-V manager.

I attempted to delete a virtual machine from my 2012 hyper-v manager and received an error at the very end that there was a catastrophic error and it threw code 0x8000FFFF.  I found an article online explaining what to do as deleting is no longer an option.  It said to go to %systemroot%\ProgramData\Microsoft\Windows\Hyper-V\Virtual Machines, find the server in question, and delete it.  OK, did that, but the vm is still showing in the hyper-v manager that I can't connect to (obviously), but also cannot delete.  Is basically a ghost at this point.  Any thoughts on how to remove fully at this point?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Neil RussellTechnical Development LeadCommented:
You should just be able to right click the missing machine and select Delete even though the files are missing. If not then a restart of the VMM service may be needed first.
J4sstromAuthor Commented:
Delete is not an option that shows when right-clicking anymore.

Which service is VMM?
J4sstromAuthor Commented:
Nevermind, found what you meant.

But says Delete failed when trying to delete after restarting service.
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

Muhammad BurhanManager I.T.Commented:
Get GUID of that VM from event viewer, then navigate to VM's location example 'C:\...Hyper-V\Virtual Machines' This is a hidden folder and requires Operating System files to be displayed.
right-click on the XML file with the same GUID,select delete and then retart VMM.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Manikandan NarayanswamySecurity Specialist & IBM Security GuardiumCommented:

Go to C:\Users\Public\Public Documents\Virtual machines\ look under this path in Virtual machines & Virtual machine configuration if you found any files regarding the failed VM delete it.

Let me know if it helps

J4sstromAuthor Commented:
As shown above Muhammad, the path does not contain the xml file for the virtual machine, I had deleted it manually after the failed attempt to delete through the hyper-v manager program.

I followed the path you gave Manikandan, that also had no files to delete, just a path of empty folders.
Muhammad BurhanManager I.T.Commented:
Please try PowerShell cmd
Remove-VM –Name “VM Name"
with quotes
J4sstromAuthor Commented:
My apologies Mohammad.  This WAS the solution.  I just went back into the folder and there was a folder I missed that had the same guid as the xml file.  Deleting that, then going back into the Hyper-V manager it allowed me to remove it completely from view in the manager.

Thank you for your assistance.
Muhammad BurhanManager I.T.Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.