There are a few sample scripts here:
Sample Scripts that can be used with the Support Automation Task Editor
An extremely basic VBScript for clearing the browser cache for IE would look like:
Sub Execute()
Functions.ShowMessage(Step.GetProperty("Message"))
End Sub
' The code below this line is automatically generated. Please do not edit it.
Sub SetProperties
' The message to be displayed.
Step.SetProperty Localization.ENU, "Message", "Clearing cache"
Set objShell = CreateObject("WScript.Shell")
objShell.Run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255"
End Sub
That script will delete all browsing history for IE. I also found some sample scripts for Firefox and Chrome here, but didn't test those out:
Solved: How to ClearCache and Cookies from Internet Explor... - SmartBear Community