title: Microsoft Edge Delete History and Cookies Programmatically
body: <p>Is there any way to delete history &amp; cookies of Microsoft Edge browser using VBScript or .net?</p>
  
  <p>Like Internet Explorer, deleting the history form "%AppData%\Local\Microsoft\Windows\History" folder or Rundll32 commands?</p>
  
  <p><strong>Rundll32 commands</strong></p>
  
  <p><em>Delete Cookies:</em> 
  rundll32.exe,InetCpl.cpl,ClearMyTracksByProcess 2</p>
  
  <p><em>Delete History:</em> 
  rundll32.exe,InetCpl.cpl,ClearMyTracksByProcess 1 </p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Found an solution for clearing cookie <a href="http://winhelp2002.mvps.org/cookies.htm" rel="nofollow noreferrer">http://winhelp2002.mvps.org/cookies.htm</a>. Deleting files from following 4 folders will clear cookies without affecting history and cache.</p>
  
  <p><code>1. \Users\user name\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3‌​d8bbwe\AC\#!001\MicrosoftEdge\Cookies</code></p>
  
  <p><code>2. \Users\user name\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3‌​d8bbwe\AC\#!002\MicrosoftEdge\Cookies</code></p>
  
  <p><code>3. \Users\user name\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3‌​d8bbwe\AC\#!121\MicrosoftEdge\Cookies</code></p>
  
  <p><code>4. \Users\user name\AppData\Local\Packages\Microsoft.MicrosoftEdge_8wekyb3‌​d8bbwe\AC\MicrosoftEdge\Cookies</code></p>
  
  <p><strong>Still need help to clear history without affecting cookie and cache</strong></p>