title: Deleting all XML children in WiX
body: <p>Is there a way in Wix to <strong>delete all children</strong> elements of a specific XML element?</p>
  
  <p>I've tried the following:</p>
  
  <pre><code>&lt;util:XmlConfig Id="Perf_delete"
      File="[INSTALLFOLDER]unity.config"
      ElementPath='/configuration/unity/container/register[\[]@name="Perf"[\]]/constructor/param[\[]@name="machineNames"[\]]/array'
      VerifyPath="*"
      Action="delete"
      Node="element"
      On="install"/&gt;
  </code></pre>
  
  <p>Here I'm specifying:</p>
  
  <ul>
  <li>ElementPath - to point to the element itself</li>
  <li>VerifyPath - * to specify all the children elements</li>
  </ul>
  
  <p>But this deletes only the first child.</p>
  
  <p>There is obviously a workaround to delete the element itself, and then recreate it, but it's very tedious with all the attributes and namespaces.</p>