Last active
May 15, 2020 01:33
-
-
Save cloudcap10/eed94f66782fb6d44083247d780907df to your computer and use it in GitHub Desktop.
clear the cache by deleting the contents of the Cache folder from https://stackoverflow.com/questions/25210330/script-for-clearing-chrome-or-firefox-cache-on-windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $Items = @('Archived History', | |
| 'Cache\*', | |
| 'Cookies', | |
| 'History', | |
| 'Login Data', | |
| 'Top Sites', | |
| 'Visited Links', | |
| 'Web Data') | |
| $Folder = "$($env:LOCALAPPDATA)\Google\Chrome\User Data\Default" | |
| $Items | % { | |
| if (Test-Path "$Folder\$_") { | |
| Remove-Item "$Folder\$_" | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment