Created
February 22, 2017 13:13
-
-
Save dialogik/eb9cd26812a46f99bf6352f9e9550625 to your computer and use it in GitHub Desktop.
Windows batch file to remove SharePoint cache
This file contains 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
set folder="%HOMEPATH%\AppData\Local\Microsoft\WebsiteCache" | |
cd /d %folder% | |
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q) | |
echo "Folder %folder% flushed" | |
set folder="%HOMEPATH%\AppData\Roaming\Microsoft\Web Server Extensions\Cache" | |
cd /d %folder% | |
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q) | |
echo "Folder %folder% flushed" | |
set /p=Hit ENTER to continue ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment