title: Unable to Remove Web.Config Nodes using Transform
body: <p>I have a web.config containing rewrite rules like this:</p>
  
  <pre><code>&lt;system.webServer&gt;
      &lt;rewrite&gt;
        &lt;rules&gt;&lt;!-- Some rules here --&gt;&lt;/rules&gt;
      &lt;/rewrite&gt;
  &lt;/system.webServer&gt;
  </code></pre>
  
  <p>For a particular deployment configuration, I want to remove the <code>&lt;rewrite&gt;</code> node entirely.</p>
  
  <p>I tried doing this:</p>
  
  <pre><code>&lt;system.web&gt;
      &lt;rewrite xdt:Transform="RemoveAll" /&gt;
  &lt;/system.web&gt;    
  </code></pre>
  
  <p>Based on this documentation:</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/dd465326.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/dd465326.aspx</a></p>
  
  <p>but the <code>&lt;rewrite&gt;</code> node remains.</p>
  
  <p>What am I missing?</p>