Skip to content

Instantly share code, notes, and snippets.

@DanielAdeniji
Created April 4, 2020 02:58
Show Gist options
  • Save DanielAdeniji/e9c9a595b9ed9e7a134cc75d394bf175 to your computer and use it in GitHub Desktop.
Save DanielAdeniji/e9c9a595b9ed9e7a134cc75d394bf175 to your computer and use it in GitHub Desktop.
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