Skip to content

Instantly share code, notes, and snippets.

@dplarina
Created August 17, 2017 17:58
Show Gist options
  • Save dplarina/cc5757c306a214e17bde4307bbbae492 to your computer and use it in GitHub Desktop.
Save dplarina/cc5757c306a214e17bde4307bbbae492 to your computer and use it in GitHub Desktop.
Script to clean cache for Visual Studio 2017 and ReSharper
REM clean vs cache
DEL /S /Q "%LOCALAPPDATA%\Temp\VWDWebCache"
DEL /S /Q "%LOCALAPPDATA%\Microsoft\WebsiteCache"
DEL /S /Q "%LOCALAPPDATA%\Microsoft\Microsoft\VisualStudio\14.0\ComponentModelCache"
DEL /S /Q "%LOCALAPPDATA%\Microsoft\Microsoft\VisualStudio\15.0\ComponentModelCache"
DEL /S /Q "%LOCALAPPDATA%\Microsoft\Microsoft\VisualStudio\15.0_2e8d5045\ComponentModelCache"
REM clean ReSharper cache
DEL /S /Q "%LOCALAPPDATA%\JetBrains\Transient\*"
REM clean .net temp files
DEL /S /Q "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\*"
DEL /S /Q "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\*"
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment