title: Attempting to delete registry keys with subkeys results in an error
body: <p>When I try to delete a key in HKCU that has subkeys I get an error.</p>
  
  <p>Here is the code I am using:</p>
  
  <pre><code>using (RegistryKey regkey = Registry.CurrentUser.OpenSubKey(@"Software\Policies\", true))
  {
     if (regkey.OpenSubKey("Google") != null)
     {
        regkey.DeleteSubKey("Google");
     }
  }
  </code></pre>
  
  <p>The error I get:</p>
  
  <blockquote>
    <p>Registry key has subkeys and recursive removes are not supported by this method.</p>
  </blockquote>
  
  <p>How can I overcome it?</p>