deleteAllCookies Not Working on Firefox

I am using the latest version of Firefox on the latest version of Windows. Seems that deleteAllCookies never works. I’ve worked around that by closing the browser at the end of each loop, and then running the macro via a batch file. Is there a better workaround?

The alternative solution require xmodules installed and emulate SHIFT + CTRL + DEL

Macro Code

{
  "Name": "Clear_Cookies_And_Cache",
  "CreationDate": "2020-2-15",
  "Commands": [
    {
      "Command": "store",
      "Target": "true",
      "Value": "!ERRORIGNORE"
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!STATUSOK"
    },
    {
      "Command": "store",
      "Target": "FAST",
      "Value": "!REPLAYSPEED"
    },
    {
      "Command": "store",
      "Target": "1",
      "Value": "!TIMEOUT_WAIT"
    },
    {
      "Command": "bringBrowserToForeground",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_SHIFT+KEY_CTRL+KEY_DEL}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "5000",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_DOWN}",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${KEY_ENTER}",
      "Value": ""
    },
    {
      "Command": "pause",
      "Target": "10000",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "Clear Browser History Completed",
      "Value": "#shownotification"
    }
  ]
}