I am seeing 'command line' options for clearing the IE cache from a command line, but cannot figure out how to do this programmatically from python, or even from an MS Dos prompt for that matter. Here's what I found from StackOverflow: clear cache of browser by command line:
Deletes ALL History - RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
Deletes History Only - RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
Deletes Cookies Only - RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
Deletes Temporary Internet Files Only - RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
Deletes Form Data Only - RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16
Deletes Password History Only - RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32
So my question is, how can I convert the above 'commands' into something I can run directly from python using subprocess, for example, that will clear the IE cache.