Skip to content

Instantly share code, notes, and snippets.

@DavidArsene
Created January 1, 2022 14:56
Show Gist options
  • Save DavidArsene/3eec8245a60c36ba942f30120db6824f to your computer and use it in GitHub Desktop.
Save DavidArsene/3eec8245a60c36ba942f30120db6824f to your computer and use it in GitHub Desktop.
Prevents Chrome and other Chromium-based apps from using the cache folders. Has no side effects
ForEach ($folder in 'Cache', 'Code Cache', 'GPUCache') { Remove-Item -Recurse "$folder/*"; icacls $folder /deny Everyone:F }
# Revert
ForEach ($folder in 'Cache', 'Code Cache', 'GPUCache') { icacls $folder /remove:d Everyone }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment