Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Google Chrome - Cache - Javascript - Clean up
@echo off
setlocal
set "_appData=%APPDATA%"
set "_appDataLocal=%LOCALAPPDATA%"
set "_googleChromeCodeCacheJS=%_appDataLocal%\Google\Chrome\User Data\Default\Code Cache\js"
dir "%_googleChromeCodeCacheJS%" | findstr "bytes" | findstr "File"
IF [%1]==[] ECHO Please pass in cleanup to actually cleanup
if "%1" == "cleanup" (
if exist "%_googleChromeCodeCacheJS%"\*_0 (
echo cleaning up ...
forfiles /p "%_googleChromeCodeCacheJS%" /M "*_0" /C "cmd /C dir /b @path & del @path "
echo cleaned up
)
)
:complete
endlocal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.