title: Winform Cefsharp: Can't clear cache directory
body: <p>I'm using <code>CefSharp</code> in my <code>WinForm</code> project.<br>
  I wan't to clear the cache directory in real time:</p>
  
  <pre><code>if (browser != null)
  {
      BrowserPanel.Controls.Remove(browser);
      browser = null;
  }
  
  String cachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\TelegramParser\Users\" + userName;
  if (Directory.Exists(cachePath))
  {
      Directory.Delete(cachePath, true);
  }
  </code></pre>
  
  <p>But I always get an error that it is not possible to delete this directory.</p>
  
  <p>This is how I declare the browser:</p>
  
  <pre><code>String cachePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\TelegramParser\Users\" + userName;
  
  if (!System.IO.Directory.Exists(cachePath))
  {
      System.IO.Directory.CreateDirectory(cachePath);
  } 
  
  var requestContextSettings = new RequestContextSettings { CachePath = cachePath };
  
  if (browser != null &amp;&amp; BrowserPanel.Controls.Contains(browser))
      BrowserPanel.Controls.Remove(browser);
  
  browser = new ChromiumWebBrowser();
  browser.RequestContext = new RequestContext(requestContextSettings, new CustomRequestContextHandler());
  browser.Dock = DockStyle.Fill;
  
  JsDialogHandler js1 = new JsDialogHandler();
  browser.JsDialogHandler = js1;
  
  BrowserPanel.Controls.Add(browser);
  browser.Load("https://google.com/");
  </code></pre>
  
  <p>What can I do to fix this?</p>