Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need more space on my SSD drive and I found that MSOCache is occupying 1.3 GB. I have Microsoft Office 2010 installed.

Can I safely delete MSOCache?

share|improve this question
    
Maybe related: Can I delete the folder “C:\WINDOWS\Installer\$PatchCache$”? (I am not on Windows, so maybe I'm wrong here?) –  Arjan Dec 2 '10 at 22:55
5  
I would say they're unrelated. –  oKtosiTe Dec 6 '10 at 17:14
add comment

5 Answers

up vote 34 down vote accepted
+50

Short answer: no. You would most likely no longer be able to perform a repair or install additional components.
I have tried it myself on a virtual machine running Windows 7 with Office 2007–I imagine it would have the same effect on Office 2010.

A safer option (as suggested here) is to burn the folder itself to DVD or move it to a USB drive, and change all references to it in the Windows registry.

From that page:

Solution, what I did recently:

  1. Burn that whole folder to a CD-R or DVD (the filesize of that folder depends upon your Office version).
  2. Delete that folder.
  3. Search the registry in RegEdit for C:\MSOCache and change all references to point to your CD/DVD drive, example: E:\MSOCache (will of course require the disc when something Office related needs those cache files.)
share|improve this answer
1  
Little "hacky" but should work fine –  zzeroo Dec 2 '10 at 15:52
    
I realize I said "yes" earlier, but I now know from experience simply deleting the folder can cause trouble. –  oKtosiTe Dec 8 '10 at 11:07
1  
I finally tried, and it seems working. –  Drake Dec 9 '10 at 8:24
1  
It took about 10 minutes to find and replace all occurances of C:\MSOCache... –  Dean K. Nov 18 '11 at 17:31
    
Is there any particular reason you cannot simply stash this folder on a separate drive (assuming Drake has a larger storage drive), then create a directory junction so C:\MSOCache references the other drive? Then you wouldn't have to edit the registry. –  stylez Apr 28 '13 at 3:54
show 1 more comment

The Local Install Source (Msocache) feature is installed so that you do not have to insert the CD during the following Setup operations:

  • Detect and Repair
  • Demand Install
  • Maintenance Mode Setup
  • Installation of service packs and patches

You can use the Windows Cleanup Wizard to remove the Msocache folder. To do this, follow the steps in the related Microsoft article.

Warning: Never delete the MSOCACHE folder by using Microsoft Windows Explorer.

share|improve this answer
    
I followed the guide. It removed my about 100MB-200MB but there are still 1.2 GB in that folder now. –  Drake Nov 29 '10 at 16:23
    
Another work around could be to create a system restore point (call it "safe"), delete the content of the folder completely, work for a few days in this wise, and go back to "safe" if you face any problems. –  Mehper C. Palavuzlar Nov 29 '10 at 16:27
    
This MS article suggests another solution. Check out Q4 and A4. –  Mehper C. Palavuzlar Nov 29 '10 at 16:31
    
that article refers to Microsoft Office 2003. I tried download and install LISTool.exe anyway, but it seems not compatible with Microsoft Office 2010 –  Drake Dec 1 '10 at 8:13
    
Then I can only suggest you try what I pointed in my first comment (system restore). –  Mehper C. Palavuzlar Dec 1 '10 at 8:19
show 1 more comment

Way to go would be Junction Point.

For example if you have 120 GB SSD Drive as C:, and 3TB Drive (Magnetic)HDD as D:

  • on drive D: create sub folder named C
  • cut and paste folder MSOCache to sub folder C located on drive D:
  • run CMD
  • type: CD \
  • type: MKLINK /J MSOCache D:\C\MSOCache
  • type: EXIT

after this you will have entire content of MSOCache folder in path C:\MSOCache, but physically files would be located on D:\C\MSOCache.


that was the answer about MSOCache folder on C drive. Now let us talk about real problem, the same one I experienced few hours ago.

NOT ENOUGH SPACE ON SSD DISK AS C: DRIVE

main problem here is Windows Installer, and their crappy system of caching all old installation files. Every old version of some software that once existed on your PC Windows Installer keeps in his cache folder. Stupid thing don't you think (only because someone might Uninstall some application Windows Installer keeps all files so it could roll back to previous state - in simplified version - believe me it's much more complicated, but accept this as is).

This wouldn't be much of problem if there aren't even bigger stupidness again from Microsoft, of course, called Windows Updates. That simply floods you with updates. And what are the Updates!? No body!? Updates == Installations == Bigger and bigger Windows Installation Cache.

My situation was I've installed literally base development PC with minimal Office + VS2005, VS2008, VS2010 - That is I must have. I had this on XP machine primary disk with 120 GB just fine and plenty of drive space left with all updates installed (~100GB). But Windows 7 == 30 GB free space (Imagine my face when I saw that). I know windows 7 is little bigger but not 70GB bigger.

... and now 2 hours later I am back to 70 GB ;) HOW you ask me!?

simply performed same thing as above for following folders:

  • C:\Windows\Installer\
  • C:\Windows\SoftwareDistribution\

this changes a little commands:

  • move above folders to (for example) D:\C\WINDOWS
  • run CMD
  • type: CD C:\WINDOWS
  • type: MKLINK /J Installer D:\C\Windows\Installer
  • type: MKLINK /J SoftwareDistribution D:\C\Windows\SoftwareDistribution
  • type: EXIT

Notice only to stop Windows Update, Trust Installer, and Windows Installer services before moving this folders, run them after if you wish or simply restart (10 seconds for reboot on SSD).

I have reclaimed back 40GB of (100% uselessly taken space, since I will never uninstall anything I use). Haven't brake any windows rules, since they use for 'Documents and Settings' same Junction Point to 'Users' although on same drive...

Still poking around what else I could move to (Magnetic) HDD drive... One thing to notice you will have 'winSxS' sub folder in Windows folder DO NOT MOVE this folder as it would defy the purpose of Solid State Disk (fast loading of applications). WinSxS is folder where all Side by Side dll's are located (and prety much every application uses something from there). This is also Microsoft's solution for DLL version HELL, if you wonder why it exists.

share|improve this answer
    
This is really the safer solution. It should be marked as correct answer! Thanks mate! –  psulek Mar 25 at 15:12
add comment

The best way to prevent this folder from being placed on your drive in the first place, is by selecting the Delete installation files check-box during the installation of Office.

From this thread :

If you delete it this is what will happen:

  • MS Office's repair function won't work from the hard disk cache anymore - will require the CD to fix it.
  • Microsoft Updates for Office that require the cache won't work from the hard disk cache anymore - will require the CD to install them.

Solution, what I did recently:

  1. Burn that whole folder to a CD-R or DVD (the filesize of that folder depends upon your Office version).
  2. Delete that folder.
  3. Search the registry in regEdit for C:\MSOCache and change all references to point to your CD/DVD drive, example: E:\MSOCache (will of course require the disc when something Office-related needs those cache files.)
share|improve this answer
1  
It seems we found the same page... –  oKtosiTe Dec 2 '10 at 15:26
1  
@oKtosiTe: Yah, and on the same minute, too. Great minds think alike ... –  harrymc Dec 2 '10 at 15:40
add comment

Very similar to previous answers - the twist is I moved C:\MSOCache to my second HD, D:\MSOCache and then all I had to do is use regedit to change all references from C:\MSOCache to D:\MSOCache for an overall quick and painless way to free-up a sizable chunk of space on the C: drive.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.