title: Bat script for clear firefox cookies and cache
body: <p>I want to clear my Mozilla Firefox cookies when my browser is still running. I tried following code, but it is working only when browser is closed.</p>
  
  <p><code>@echo off
  set DataDir=C:\Users\%USERNAME%\AppData\Local\Mozilla\Firefox\Profiles
  del /q /s /f "%DataDir%"
  rd /s /q "%DataDir%"
  for /d %%x in (C:\Users\%USERNAME%\AppData\Roaming\Mozilla\Firefox\Profiles\*) do del /q /s /f %%x\*sqlite</code></p>
  
  <p>Is there any way to clear cookies when browser is running?</p>