title: gecko clear cache history & cookies
body: <p>Help! I use <strong>GeckoFx-Windows-10.0-0.6</strong> for browser and <strong>xulrunner-10.0.en-US.win32</strong>. ( Visual Studio 2010 c# ) everything works well. But i need to clear all history as at Firefox : 
   Tools >> Options >> Privacy </p>
  
  <p>I find how clear cookie over <code>Gecko.CookieManager.RemoveAll();</code></p>
  
  <p>How clear cache , temp files and history ?!</p>
  
  <p>And when i initialize <code>Gecko.Xpcom</code> i can not clean the folder <code>"Gecko.Xpcom.ProfileDirectory"</code> (where cache and cookie)  for obvious reasons.
  <code>Gecko.Xpcom.Shutdown()</code> does not help</p>
  
  <hr>
  
  <p>I found a way to clean the cookies via javascript : </p>
  
  <p><code>var cookieManager = Components.classes["@mozilla.org/cookiemanager;1"].getService(Components.interfa‌​ces.nsICookieManager); 
  cookieManager.removeAll();</code></p>
  
  <p>How right call this JS in C#?</p>