My Windows folder takes up too much space - how can I reduce it?

24

9

In typical PCs the Size of Windows Folder is 6 to 8 GB but in my Case its 25GB. How can I delete the unwanted files from the Windows Folder (which, in turn, will optimize my C Drive size).

My system is Windows 7 with 60 GB in C Drive with 59 GB occupied.

Kishore Jangid

Posted 2012-01-15T18:00:27.037

Reputation: 363

There are a lot of free windows 'file cleaners' out there that will tidy things up for you. I don't use them, so I cannot recommend one, but it should be free and open source if possible. The last thing you want is bloatware or spyware. – skub – 2012-01-15T18:17:42.020

1Get a bigger harddrive. – surfasb – 2012-01-16T23:56:08.410

Just some tips to free some space: if you don't use the hibernate function, disable it and if you have a lot of RAM, reduce the size of your pagefile.

– Gene – 2012-09-20T09:45:41.237

Answers

15

A large Windows folder is quite normal. The Windows folder may start out in the 6-8GB range bbut it will grow larger over time. This is normal behavior of Vista/7 and there isn't really much you can do about it.

The cause is winsxs, and the details are described in this blog-post.

For comparison my Windows folder is 29GB, a bit bigger than yours.

The recommendation of running Disk Cleanup in the other answer are worth a try, but I suspect winsxs is the main cause of your large Windows folder.

EDIT Filling in from the comments:

Another folder that can grow big is the Windows\Installer folder, a protected system folder that contains repair and uninstall information for the programs and updates you've installed. There used to be a program by Microsoft called miszap.exe that could clean out orphaned files from here, but there were issues and it is no longer supported.

The fact is that there really is no safe way to clean out stuff from the Windows folder beyond what Disk Cleanup can do. It is also quite normal for the Windows folder to grow over time as updates and programs get installed onto the system.

The one way to get the Windows folder back to a smaller size is to wipe the system and clean-install it from scratch. But even this is a temporary fix as the Windows folder will start to grow again over time.

To keep it from growing too much it is worth installing windows from media with the latest service pack installed and to be frugal in what programs are installed.

Mr Alpha

Posted 2012-01-15T18:00:27.037

Reputation: 6 391

@Johnny_D Basically, to ensure you can uninstall (and in fact, reinstall) applications and updates, as well as to ensure that different versions of DLLs can coexist safely. Not to mention having the whole 32-bit subsystem along the 64-bit OS, maintaining full backwards compatibility. Oh, and having a s-ton of drivers. The idea on its own is actually pretty smart - the problem is you can't turn it off easily if you really think you don't need it (obviously, it's because people thought so even though it wasn't actually true :)). – Luaan – 2015-05-29T12:20:04.313

1

I just want to note, Microsoft heard our cries about the Installer folder and added functionality to disk cleanup tool. It's made available through a system update and (if your searching through system cleanup options) adds the option for "Windows Update Cleanup". You can read more about it at Microsoft's support site: https://support.microsoft.com/en-us/kb/2852386

– Christopher Esbrandt – 2015-06-12T18:38:24.173

my winsxs is just 5 GB – Kishore Jangid – 2012-01-16T05:44:25.767

That is not as big as I expected. Another thing that can balloon over time is the windows\installer folder. How big is that one for you? – Mr Alpha – 2012-01-16T12:32:29.903

i dont have such a folder in Windows Folder – Kishore Jangid – 2012-01-16T12:53:30.643

It is a protected system folder and won't show up by default. You need to disable Hide Protected Operating System Files in Folder Options. Truthfully the easiest solution might be to run WinDirStat, and see what it reports. – Mr Alpha – 2012-01-16T13:00:18.533

Its 9.36GB... Can i remove that – Kishore Jangid – 2012-01-16T13:11:01.040

Not really, no. It contains repair and uninstall information for most stuff on you computer. There used to be a tool by Microsoft to remove orphaned pieces left over from failed installs or updates called msizap.exe, but it is no longer available from Microsoft. Apparently there were some issues. If you want you can see if you find it and see if that helps with the size, but it is not really safe to use so backup before you do. – Mr Alpha – 2012-01-16T14:50:21.147

is there any other way of reducing the size of windows Folder – Kishore Jangid – 2012-01-16T14:52:18.713

Not anything safe. As you install program and update the windows folder will grow endlessly. Except reinstall windows. – Mr Alpha – 2012-01-16T15:00:32.860

4I really hate this behaviour of windows, cuz my windows folder is over 50 gb size? What kind of OS should be that size? It's terrible. – Johnny_D – 2014-01-17T09:03:27.617

13

A couple more suggestions.

  1. One of typically large subfolders of Windows is Installer (a hidden system folder). You can move it to a larger drive and replace it with a symbolic link. Here's a cmd command to create the link once you have moved the folder:
    mklink /D C:\Windows\Installer D:\...\Installer
    It's an archive which isn't used often, so moving it to a slower drive won't hurt your performance.
  2. Check the LocalMLS folder (C:\Windows\ServiceProfiles\NetworkService\AppData\Local\Microsoft\Media Player\Art Cache\LocalMLS; the "Art Cache" part is named differently in non-English Windows). It can also grow large by keeping thousands of images. You can delete them all (it's just a cache, no important data), and if you don't use Windows Media Player Network Sharing, you can disable their collection in the future. Run services.msc, find "Windows Media Player Network Sharing Service" in the list (in Russian it's "Служба общих сетевых ресурсов ..."), stop it, then open its properties and change the Startup type item from "Manual" to "Disabled".

lapis

Posted 2012-01-15T18:00:27.037

Reputation: 321

2Be aware - if, for any reason, link becomes "broken" (it happened with my computer after Windows 10 upgrade), then Windows starts to use the old - c:\windows\Installer folder. But You can move everything again to one place and reset the link again. – Arnis Juraga – 2016-09-14T16:00:09.547

9

If you run low on disk space do the following:

Turn off hibernation on desktop PCs:

powercfg -h off

Remove old service pack files:

DISM /online /Cleanup-Image /SpSuperseded

Commands must be run from an elevated command prompt.

Run "disk cleanup"

Run ccleaner.exe from http://www.piriform.com/CCLEANER

I just reclaimed about 20GB of space on my machine.

Chris Weber

Posted 2012-01-15T18:00:27.037

Reputation: 1 035

0

Here are some things you can do to clear up space:

  • Use the freeware tool SpaceSniffer to find out what is making your disk full. You might want to take a close look at your AppData folder.

Now, to clean up Windows folder specifically:

  • Press Win + R and type cleanmgr. Select the driver you want to reduce the size of. Press OK. Check what you want to get rid of. Confirm.
  • Disable hibernate. hibernate puts a large 5-10GB file at your root C: directory, if you don't use the hibernate feature, just disable it. Win+r and type powercfg -h off
  • Clean up the WinSxS folder via this Microsoft guide.
  • Clean up C:\Windows\Installer using PathCleaner tool.

Lucas Bustamante

Posted 2012-01-15T18:00:27.037

Reputation: 237

0

I just noticed a similar problem on an old Windows 7 machine. (Which was never upgraded due to fear of losing an old drive with Truecrypt installed on it.)

In my case, the C:\Windows directory was 272 GB! I saw other people mentioned the Installer folder but mine was a measly 18 GB, and another possibility, the winsxs folder, was just a paltry 16 GB. For me the culprit was the C:\Windows\Temp folder which weighed in at 206 GB! Fortunately, the heavyweight Temp folder had a weak chin, and I knocked it out with a single sucker punch which surprisingly took less than 30 seconds. When the bout was over all that remained were 17 small locked files that I left for the birds to eat.

Tip: I didn't delete the Temp folder; I just opened it, reverse sorted by file size, and selected everything in it, and deleted that. Some of the small files at the end were locked and I left them.

TTT

Posted 2012-01-15T18:00:27.037

Reputation: 583

0

You can compress Windows folders, for instance the Install folder. I went from 8,2 GB to ca. 5,8 that way. It does not solve all problems, but safely reduces size on disk a bit.

To compress a folder, do the following:

  • right-click on the folder
  • select Properties
  • click on Advanced...
  • check the "Compress contents to save disk space" option
  • click OK twice

If any errors occur, select "Ignore all", then it's applied to only those folders that can be compressed.

Per G

Posted 2012-01-15T18:00:27.037

Reputation: 111

Which subfolders of the Windows folder is it reasonable to compress? Doesn't Windows use most of them a lot? – einpoklum – 2015-08-08T10:38:45.277

1Installer SoftwareDistribution Downloaded Program Files Windows uses them att updates I think – Per G – 2015-09-07T11:27:14.287

0

I posted a little trick to get size of directories or files: Fastest Way to Know the Size of Files or Folders

You first select the elements you want to measure, this by using "Ctrl" key and click over the files or folders without releasing the key. As a second step you click the right button of your mouse and select "Properties" option displayed in the menu.

With the procedure explain lines above you'll finally get here, where you will see the total amount of space used by the chosen elements.

And what is the trick? Well, it's quite simple but I know there are people who may not have acknowledge about this, just use the keys "Alt" and "Enter" and you'll skip the right-clicking thing and selecting "Properties". Yes! just select the elements and press "Alt" + "Enter" to go straight to "Properties" windows.

Rony

Posted 2012-01-15T18:00:27.037

Reputation: 17

6Doesn't address what was asked in the question. – fixer1234 – 2015-06-11T18:38:09.913

0

There is a really great tool that maps the disc usage. The bigger the file/folder the bigger the square on the map. The program is called SequoiaVew and can be found here.

Bartlomiej Lewandowski

Posted 2012-01-15T18:00:27.037

Reputation: 147

2While this is an interesting tool, you are not addressing OP's question. He did not ask "how do I know which folders take up space". – einpoklum – 2015-08-08T10:39:35.483

Sorry, that required to download a downloader for the application which I refuse to do. – Eric Herlitz – 2013-02-21T18:54:41.590

1i fixed a link to the university website hosting an actuall install exe – Bartlomiej Lewandowski – 2013-02-21T19:51:42.187

Awesome! Seems like a useful software – Eric Herlitz – 2013-02-22T07:51:15.583

0

If you upgrade your Windows 7 to Windows 10 during the free upgrade phase, the windows cleanup tool can clean your previous windows installation files.

I have cleaned 37GB off my main drive this way.

Keep in mind, that you won't be able to downgrade back after this.

Alekong

Posted 2012-01-15T18:00:27.037

Reputation: 44

The asker says they only had 1Gb free on the drive, which isn't enough to download and install Windows 10. – David Richerby – 2015-10-02T09:30:02.620