Там написано, что
These APIs can only be used with F12 developer tools and the Diagnostics Script Engine, and can't be called from JavaScript.
Так что, наверное, только через Visual Studio или его аналог получится.
Я раньше так стирал:
ClearTracks(sCmd)
{
ValidCmd := {Files :8 ; Clear Temporary Internet Files
,Cookies :2 ; Clear Cookies
,History :1 ; Clear History
,Forms :16 ; Clear Form Data
,Passwords :32 ; Clear Passwords
,All :255 ; Clear all
,All2 :4351} ; Clear All and Also delete files and settings stored by add-ons
If (ValidCmd.haskey(sCmd))
{
iCmd := ValidCmd[sCmd] ; Get the integer value
VarSetCapacity(wCmd,15,0)
DllCall("MultiByteToWideChar", "Uint", 0, "Uint", 0, "str", iCmd, "int", -1, "str", wCmd, "int", 8)
DllCall("inetcpl.cpl\ClearMyTracksByProcessW", "Uint", 0, "Uint", 0, "str", wCmd, "int", 0)
}
Else
MsgBox % "Invalid Command -" sCmd "-"
return ErrorLevel
}