15

I have a Windows 7 system, and my C: drive is regularly getting full.

What can I safely delete from the C: drive, especially the Windows system folder?

16

The biggest stuff in C:\Windows should be the winsxs folder, read more about that problem Why does the /winsxs folder grow so large, and can it be made smaller?. Since that stuff is used by all kind of apps, you must not remove it. And since it is the biggest chunk (of "junk"), all other directories do not matter that much any more.

You can obviously remove some leftovers / rollback-stuff, best done via http://www.piriform.com/CCLEANER.

To make it short: Buy a bigger disk.

| improve this answer | |
  • The winsxs folder is actually much smaller than it appears. Lots and lots of aliased files. – Jamie Hanrahan Sep 7 '15 at 9:34
  • 2
    "aliases" as in "hardlinks", but true. – akira Sep 7 '15 at 11:04
  • Some machines, like tablet PC's, are sealed with a relatively small SSD. [My Chuwi Hi10 has a 64GB drive]. Every byte you can claw back is a victory. I started with the language directories in System32 subfolder. – Alan Campbell Dec 17 '17 at 0:08
9

I've written a Blog post on the SuperUser Blog detailing some of the things you can do to scrape back some hard drive space. Read it at Where did all my hard drive space go?

To summarise, there are many things you can do, depending on whether there is functionality that you need:

  • Don't use hibernation? Then you can disable it and claim back a quantity of hard drive space equal to the amount of RAM you have, you just need to log on as an administrator, open a command prompt and type the following two lines:

    powercfg –h off
    del C:\hiberfil.sys

  • Old Windows Update files can be deleted as the folder they are stored in used to get quite big. They are stored in C:\Windows\SoftwareDistribution but you'll need to go through the method I detailed in the blog to properly clean the directory out.

  • System Restore is another hog and deleting old restore points can clean out space, you can even control how much space is available for use with System Restore

    As an administrator, simply click the Windows Start menu icon, enter “SystemPropertiesProtection.exe”

  • The WinSxS folder is a red herring and contains no data that is not already duplicated elsewhere and deleting it will save you nothing. This special folder contains what is known as a hard links to files which are scattered across your system and are kept in that folder to simplify matters slightly. The hard links take nearly no extra space in the filesystem as they are simply another pointer to already existing file data.

An alternative to the excellent CCleaner that Akira linked is a more commercially supported alternative from IOBits, Advanced SystemCare4. There is a free version available which will likely do just as much to clean out your system as CCleaner, but has a few added extras.

| improve this answer | |
  • Downvoted because these are not symbolic links, but hard links — both names of the file are just as “real”. – kinokijuf Sep 7 '15 at 8:18
  • @kinokijuf fixed. – Mokubai Sep 7 '15 at 9:24
  • Not fixed! The WinSxS folder data are real; in fact, from the TrustedInstaller perspective, the system files are treated as hard links to the ones in WinSxS! – kinokijuf Sep 7 '15 at 9:30
  • @kinokijuf is it just the word "real" that you object to or do you want it to say something else? I'm happy if you want to suggest a clarification... – Mokubai Sep 7 '15 at 11:12
  • 1
    @kinokijuf There's no one "real file" when it comes to hard links; the file just has two names. It's not possible to tell which one was the "original." Files are only truly deleted from NTFS when all names/hardlinks are removed. – Ben N Jan 23 '16 at 22:13
5

Since October 2013 the disk cleanup utility was enhanced with the ability to clean up Service Pack and Windows Update files, this is the safest way to reduce the sized of WinSXS folder.

KB2852386 is what added this feature and most W7 PC's have it installed now.

Cleanup first pass

enter image description here

Click Clean up system files button and this is what you will see.

enter image description here enter image description here

| improve this answer | |
0

Seven kinds of files you can safely delete from your C Drive without any negative effect.

  1. Temporary files
  2. Download files
  3. Browser’s cache files
  4. Old Windows log files
  5. Windows upgrade files
  6. Recycle Bin
  7. Desktop files

Here is the location of them in C Drive.

Temporary files: C:\Windows\Temp

Download files: C:\Users%userprofiles%\Downloads

Browser’s cache files:

Chrome: C:\Users%userprofiles%\AppData\Local\Google\Chrome\User Data\Default\Cache

Firefox: C:\Users%userprofiles%\AppData\Local\Mozilla\Firefox

Internet Explorer:C:\Users%userprofiles%\AppData\Local\Microsoft\Internet Explorer\CacheStorage

Old Windows log files: C:\Windows\Logs\CBS

Windows upgrade files: C:\Windows\SoftwareDistribution\Download

Recycle Bin

It is recommended to develop the habit of emptying Recycle Bin. All the files we have deleted are still saved in Recycle Bin making it accessible to restore files. The files in Recycle Bin can be deleted from C drive without any affect.

Desktop files

By default, the files on desktop are saved on C drive. So, it is advisable for you to sort out the files on desktop and delete the useless files from desktop. Additionally, you can also change the location of desktop to other drive so that when you drop the file to desktop, it won’t take up space on C drive.

More details can be referred to this post: Which Files Can Be Safely Deleted From C Drive Hope it help!

| improve this answer | |
-2

I've been playing with the WinSXS folder in a few test installs and I have figured out a way to save some space. In a 3 month old Windows 7 Pro install on my laptop, the SxS folder grew to 14GB. I can safely delete 7.4GB of that without any issues.

I was a bit surprised to read that most "technical" write ups say you can't delete anything in the SxS folder without issues. This is just not true and I wonder if anyone has tried different scenarios or if that opinion is just grown off of Microsoft's warnings. There is one thing that you can't do after "cleaning" the SxS folder, but it's rare that you'd need to so I won't even waste the keystrokes.

I've had this running smoothly for a LONG time, and on the laptop I use for work as an IT Director, so I put it through it's paces - that's for sure. It's well worth the disk space in some cases. For example -- I love my laptop which is an older Dell and I've got an SSD drive in it. The SSD is only 60 gig, so space is at a premium. As is, I use a 32GB SDCard in the onboard reader to give me extra space, but knocking a chunk of useless crap off is a nice option when you don't need 75% of the files in that folder.

I'll do a write up on it and post it here in the next couple of days.

| improve this answer | |
  • 2
    Just because you haven’t run into any issues doesn’t mean it’ll work for anyone. These files are there for programs to use. Windows itself doesn’t need most of them. – Daniel B Jun 27 '15 at 10:47
  • I think it runs smoothly until you decide to uninstall (or upgrade) something, then it complains about missing files, and you are stuck with software that you are unable to uninstall. – Rolf May 29 '19 at 0:01

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