29

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.

einpoklum
  • 8,783
  • 20
  • 84
  • 153
Kishore Jangid
  • 412
  • 1
  • 4
  • 10
  • 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 Jan 15 '12 at 18:17
  • 2
    Get a bigger harddrive. – surfasb Jan 16 '12 at 23:56
  • Just some tips to free some space: if you don't use the hibernate function, [disable it](http://www.sevenforums.com/tutorials/819-hibernate-enable-disable.html) and if you have a lot of RAM, [reduce the size](http://www.mcci.com/mcci-v5/support/howtos4.html) of your pagefile. – Gene Sep 20 '12 at 09:45
  • Related: [Reclaiming disk space on Windows](https://superuser.com/questions/8141/reclaiming-disk-space-on-windows), [Safe to delete WINDOWS\SoftwareDistribution](https://superuser.com/questions/53266/safe-to-delete-c-windows-softwaredistribution-download), [How can I free up drive space from the Windows installer folder?](https://superuser.com/questions/707767/how-can-i-free-up-drive-space-from-the-windows-installer-folder-without-killing). PathCleaner easily saved 20 Gb in [my case](https://superuser.com/questions/23479/is-it-safe-to-delete-from-c-windows-installer/1544283#1544283). – Vadzim Apr 21 '20 at 21:27

9 Answers9

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
  • 6,668
  • 2
  • 24
  • 26
  • my `winsxs` is just 5 GB – Kishore Jangid Jan 16 '12 at 05:44
  • 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 Jan 16 '12 at 12:32
  • i dont have such a folder in Windows Folder – Kishore Jangid Jan 16 '12 at 12:53
  • 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 Jan 16 '12 at 13:00
  • Its 9.36GB... Can i remove that – Kishore Jangid Jan 16 '12 at 13:11
  • 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 Jan 16 '12 at 14:50
  • is there any other way of reducing the size of windows Folder – Kishore Jangid Jan 16 '12 at 14:52
  • Not anything safe. As you install program and update the windows folder will grow endlessly. Except reinstall windows. – Mr Alpha Jan 16 '12 at 15:00
  • 6
    I 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 Jan 17 '14 at 09:03
  • @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 May 29 '15 at 12:20
  • 2
    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 Jun 12 '15 at 18:38
14

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
  • 343
  • 4
  • 8
  • 3
    Be 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 Sep 14 '16 at 16:00
11

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
  • 1,235
  • 2
  • 12
  • 12
  • 1
    What could "Could not enumerate Service Pack on machine." mean ? – bvdb Mar 04 '20 at 08:47
  • I had this problem. Went away after I ran microsoft's disk cleanup tool and followed directions here: https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder?view=windows-11 – MaasSql Feb 25 '22 at 01:33
1

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
  • 534
  • 3
  • 13
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
  • 683
  • 5
  • 11
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.

Indrek
  • 24,204
  • 14
  • 90
  • 93
Per G
  • 111
  • 2
  • Which subfolders of the Windows folder is it reasonable to compress? Doesn't Windows use most of them a lot? – einpoklum Aug 08 '15 at 10:38
  • 1
    Installer SoftwareDistribution Downloaded Program Files Windows uses them att updates I think – Per G Sep 07 '15 at 11:27
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
  • 17
  • 1
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.

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
  • 44
  • 7