Clear, Reset or Reinitialize Offline Files Cache in Windows 8, 8.1, & 10

The Old Registry tweaks to delete the CSC Cache don’t always do the job.

Have you ever turned off Offline Files in Windows 8 or 10 trying to “start from scratch” and then turned them back on again only to find the same old files in their places? In Windows 7, there was a registry entry which would reset the CSC Cache and both give you a clean slate as well as recover hard drive space. However, most users report that in Windows 8 and/or 10, this doesn’t do the whole job. Either the files still appear in the Offline Files Cache, or they don’t appear, but the CSC directory still takes up all the hard drive space as if the files were still there. The following solution seems to work for most users.

  1. Turn off offline files
    • Type “Offline” in the search box in the upper right hand corner.
    • Select “Manage Offline Files”
    • Select “Disable Offline Files”
    • Reboot
  2. Delete CSC Cache Using Robocopy
    • Start a Command Prompt with Administrative privileges byt clicking the Start Button and typing CMD. When the Command Prompt program appears in the search results, Right Click it and select “Run as Administrator.”
    • Type “cd \”
    • Type “mkdir erasescsc”
    • Type “robocopy c:\erasecsc c:\windows\csc\v2.0.6\cache /mir”. This basically writes over the CSC directory with the blank one you just created. Unlike Windows Explorer, Robocopy works around the permission and ownership issues as long as it is run as an administrator.
  3. Make Registry Entry for Resetting CSC Cache
    • This step should be done by advanced users only, as editing the registry can make your computer into an expensive paperweight if not done correctly. For those users, and for the brave, do the following.
    • Type “regedt32” in the Command Prompt window. This will open the registry editor.
    • Browse to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc
    • Most likely there will be a folder called “Parameters” already in that section. If not, add a new key (folder) called Parameters by right clicking on CSC and selecting “New” and then Key”.
    • Under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Csc\Parameters, right click and add a new DWORD called FormatDatabase and set its value to 1.
    • Close the editor and reboot
  4. Re-Enable Offline Files
    • Type “Offline” in the search box in the upper right hand corner.
    • Select “Manage Offline Files”
    • Select “Enable Offline Files”
    • Close and Reboot

At this point your CSC directory should be empty and the database reset. Choose what files you want available offline, and enjoy! EDIT: Some users have reported that even the robocopy command will not fully delete the CSC. For some of these users, opening an Administrative Command Prompt and typing “chkdsk c: /r” and then “y” for running on reboot followed by a reboot before running the robocopy command clears up the issue.

2 Responses to “Clear, Reset or Reinitialize Offline Files Cache in Windows 8, 8.1, & 10”

  1. Soumen Siddhanta 13 June 2016 at 7:38 am #

    Very good information. Nice article. Thanks.

  2. programming 15 June 2016 at 12:41 pm #

    i was read your article.this article very helpful and information able.and if you give me more information about Command Prompt that will be more helpful for me

Leave a Reply

Submit the word you see below: