How to clear cache in VM

Clearing cache could help in some cases. Close Visual studio and other applications before attempting to clear the cache for them. 

In a VM navigate to the mentioned paths and clear the contents.

  • C:\Users\Administrator\AppData\Local\Temp
Below are the paths to clear cache related to Visual studio and Team foundation/VSTS
  • C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio\14.0\ComponentModelCache
  • C:\Users\Administrator\AppData\Local\Microsoft\VisualStudio Services\7.0\Cache
  • C:\Users\Administrator\AppData\Local\Microsoft\Team Foundation\6.0\Cache

Note
  1. The admin user would be named differently in each VM but it would start with Admin******
  2. Depending on the version of VS the folder numbers could be as 15.0_eff6c803 or 16.0_e0fab5b4
  3. Don't clear any other content apart from mentioned cache folders.
Similarly, to clear cache corresponding to SQL is
  • C:\Users\AdministratorAppData\Local\Microsoft\SQL Server Management Studio\18.0_IsoShell\ComponentModelCache


In case if AppData is not visible, Check Hidden items as shown in the image.

Click on File , navigate to View tab and in Show/Hide section click the Hidden Items check box


In case, if the folder to be deleted needs admin access you can receive such messages.


You'll need to provide administrator permission to delete this folder


Check the "Do this for all current items" and say continue. 

Note: You can do this only if you are logged in as an administrator into the VM. If not, you will prompted to enter the admin credentials


In case, if the contents which you are attempting to delete is in use by other program which is currently running in the system.You will see below message

The action can't be completed because the folder or file in it is open in another program
  1. Check the "Do this for all current items"
  2. Click skip if you don't want to close the running app or
  3. Click Try Again after closing the running apps



Comments