Forum Discussion
How to clear all cache and junk files from my Windows 11/10 computer?
Using Chrome command-line launch parameters to clear cache and junk files isn't directly supported through a specific parameter. However, you can automate clear all cache and junk files on Windows 11 by using command-line options or scripts that delete Chrome's cache directories.
Close Chrome: Make sure Chrome is not running.
Delete cache folders: Use command-line commands to clear all cache and junk files on Windows 11.
Example batch script:
@echo off
taskkill /IM chrome.exe /F
rmdir /s /q "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Cache"
rmdir /s /q "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Code Cache"
rmdir /s /q "%LOCALAPPDATA%\Google\Chrome\User Data\Default\Media Cache"
start chrome
This script kills Chrome, deletes cache folders, and then restarts Chrome.
Alternative: Use Chrome's built-in command-line argument for incognito mode:
chrome --incognito
But note, this doesn't clear cache; it just opens Chrome in incognito mode, which doesn't save cache during that session.