title: How to remove virtual machine from Hyper-V cluster?
body: <p>There is a cluster node on which I create virtual machine:
  <a href="https://i.stack.imgur.com/YwXYi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YwXYi.png" alt="enter image description here"></a></p>
  
  <p>After that I use method <a href="https://msdn.microsoft.com/en-us/library/hh418102(v=vs.85).aspx" rel="nofollow noreferrer">AddVirtualMachine</a> to add <strong>existing</strong> virtual machine to cluster.  </p>
  
  <p><a href="https://i.stack.imgur.com/DYfOK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DYfOK.png" alt="enter image description here"></a></p>
  
  <p>But there is no corresponding method <code>DeleteVirtualMachine</code>.</p>
  
  <p>If I simply remove virtual machine from a Node, then the following artefact is left on a cluster:
  <a href="https://i.stack.imgur.com/2lm7E.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2lm7E.png" alt="enter image description here"></a></p>
  
  <p>How can I remove my virtual machine from Hyper-V cluster via WMI?</p>