erase "%TEMP%\*.*" /f /s /q
for /D %%i in (“%TEMP%\*”) do RD /S /Q "%%i"
erase "%TMP%\*.*" /f /s /q
for /D %%i in (“%TMP%\*”) do RD /S /Q “%%i”
erase “%ALLUSERSPROFILE%\TEMP\*.*” /f /s /q
for /D %%i in (“%ALLUSERSPROFILE%\TEMP\*”) do RD /S /Q “%%i”
erase “%SystemRoot%\TEMP\*.*” /f /s /q
for /D %%i in (“%SystemRoot%\TEMP\*”) do RD /S /Q “%%i”
@rem Clear IE cache – (Deletes Temporary Internet Files Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8
@rem (Deletes ALL History)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 255
@rem (Deletes History Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
@rem (Deletes Cookies Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
@rem (Deletes Form Data Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 16 (Deletes Form Data Only)
@rem (Deletes Password History Only)
RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 32 (Deletes Password History Only)
@rem (Deletes All)
rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 4351
set DataDir=C:\Users\%USERNAME%\AppData\Local\Microsoft\Intern~1
del /q /s /f “%DataDir%”
rd /s /q “%DataDir%”
set History=C:\Users\%USERNAME%\AppData\Local\Microsoft\Windows\History
del /q /s /f “%History%”
rd /s /q “%History%”
set IETemp=C:\Users\%USERNAME%\AppData\Local\Microsoft\Windows\Tempor~1
del /q /s /f “%IETemp%”
rd /s /q “%IETemp%”
set Cookies=C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Cookies
del /q /s /f “%Cookies%”
rd /s /q “%Cookies%”
erase “%LOCALAPPDATA%\Microsoft\Windows\Tempor~1\*.*” /f /s /q
for /D %%i in (“%LOCALAPPDATA%\Microsoft\Windows\Tempor~1\*”) do RD /S /Q “%%i”
@rem Clear Google Chrome cache
erase “%LOCALAPPDATA%\Google\Chrome\User Data\*.*” /f /s /q
for /D %%i in (“%LOCALAPPDATA%\Google\Chrome\User Data\*”) do RD /S /Q “%%i”
@rem Clear Firefox cache
erase “%LOCALAPPDATA%\Mozilla\Firefox\Profiles\*.*” /f /s /q
for /D %%i in (“%LOCALAPPDATA%\Mozilla\Firefox\Profiles\*”) do RD /S /Q “%%i”