Hello,
Thank you for posting question on Microsoft Windows Forum!
Based on the issue description as well as the provided error code 0x2 which indicates "The specified file cannot be found". Because the cluster manager is looking for the configuration file to clean it up, but since it is already gone, it throws its hands up and refuses to do anything.
The suggestion here is to create dummy file. You can first check the properties of the stuck VM in Failover Cluster Manager to see what folder path it is expecting. This is usually on a Cluster Shared Volume (something like C:\ClusterStorage\Volume1\YourVMName). Navigate to that folder path. If the folder does not exist anymore, recreate it. Inside that folder, create a blank text file and rename it to have the exact name and file extension of the configuration file the cluster is missing (usually .xml on older servers or .vmcx on newer ones). Once that dummy file is in place, go back to Failover Cluster Manager, right-click the role, and try to delete it.
Another point worth mentioning here is that if the cluster refuses to let go of the role because it is locked in an "OnlinePending" or "Deleting" state, restarting the host services might clear the lock. Look in Failover Cluster Manager to see which node is the current Owner Node of that stuck VM role. Log into that specific node and open PowerShell as Administrator. You can consider to restart the Hyper-V Virtual Machine Management service and the Cluster service.
Please note: Restarting these services will temporarily lose management connection for minutes. If you want to be extra safe, live-migrate your active VMs off that node first.
You can consult the following articles for more information regarding your concerns.
- https://learn.microsoft.com/en-us/powershell/module/failoverclusters/remove-clusterresource?view=windowsserver2025-ps
- https://learn.microsoft.com/en-us/troubleshoot/windows-server/virtualization/hyper-v-start-state-access-failures-clustered-standalone
Hope the above information is helpful! If it is. Free feel to hit "Accepted" for benefitting others in community having the same issue too.