Windows 7 Delete Winsxs Files

In Windows 7 and Windows 8/10, there is a new folder under C: Windows called WinSxS, which basically stores dll and component files. It also stores older versions of all dll and component files and can grow to be quite large. This means that every Windows Update you install increases the size of your WinSXS folder. This allows you to uninstall operating system updates from the Control Panel, which can be useful in the case of a buggy update — but it’s a feature that’s rarely used. RELATED: 7 Ways To Free Up Hard Disk Space On Windows. Windows 7 dealt with this.

Active2 years, 6 months ago

I got a new laptop and did the Windows transfer process to move the old laptop files to the new one. It seems along the way it also transferred a bunch of files in the winsxs folder.

I know this because the new laptop is an Intel Core i7 processor and a bunch of folders with names like 'amd64_microsoft-windows' exist in that folder from 2009.

I just did the Windows cleanup process and rebooted, but these folders remain. Can I manually delete them or how can I get rid of them if the manual deletion is not an option?

Peter Mortensen
8,58316 gold badges62 silver badges85 bronze badges
jamidajamida

2 Answers

Install the following update:

Run Disk Cleanup and now you can uninstall updates (Windows Update Cleanup) which are replaced by newer security updates and are no longer needed. This can save several GB of space.

Peter Mortensen
8,58316 gold badges62 silver badges85 bronze badges

Clean Winsxs

magicandre1981magicandre1981
84.5k21 gold badges134 silver badges210 bronze badges

You can't get rid of them at all. Many programs are using older versions of the Visual C++ Runtime (and other libraries, of course), for example. That's what this folder is for. It's perfectly normal for it to be many gigabytes in size.

Be aware though that the folder consists of many hard links, so not all programs are able to correctly calculate its size.

Daniel BDaniel B
37.1k8 gold badges71 silver badges92 bronze badges

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

In last week's article, How to clean up system files with the Windows 10 Disk Cleanup tool, I told you about the WinSxS folder and how it can accumulate a lot of extraneous files. I then showed you how to enable and use the Cleanup System Files feature in the Disk Cleanup tool to remove unnecessary files from the WinSxS folder as well as from other locations on your hard disk.

More about Windows

In measuring the success of Disk Cleanup's work with the WinSxS folder, I mentioned that the Clean Up System Files feature removes only those files in the WinSxS folder that it determines are no longer needed by the system. As a result, you may find that a lot of files have been removed from your system—or that very few files have been removed from your system. It all depends on how many files Windows deems are necessary.

In this article, I'll show you another method you can use to take a whack at the WinSxS folder.

Warning!

Windows 7 Delete Winsxs Files

Before I get started, I need to provide you with a warning. After the last article was published, I received a couple of emails from readers asking why you can't just open the WinSxS folder and delete everything in sight. That may sound like a good idea, but it's not. I should have included this warning in the first article.

The purpose of the WinSxS folder is to store all the files that the operating system may need to keep functioning stably during and after various update procedures. If you were to delete everything in the WinSxS folder, Windows would become severely unstable and could even be damaged so badly the system might not boot. And even if the system were able to boot, it would be impossible to update. So it's best to stick with the prescribed methods of cleaning up the WinSxS folder.

The Task Scheduler method

By default, Windows comes with a preconfigured task in Task Scheduler called StartComponentCleanup. While Task Scheduler will automatically run the StartComponentCleanup task on a regular basis, you can also run it manually at any time. Let's take a closer look.

The easiest way to launch Task Scheduler is to access the Run command by pressing [Windows]+R and typing taskschd.msc in the Open box, as shown in Figure A. To continue, click OK.

Figure A

Use the Run command to launch Task Scheduler.

Once Task Scheduler launches, expand the console tree on the left and navigate to Task Scheduler LibraryMicrosoftWindowsServicing. Then, select StartComponentCleanup, as shown in Figure B.

Windows 7 Delete Winsxs Files Mac

Figure B

The StartComponentCleanup task runs on a regular basis.

Unfortunately, even though the StartComponentCleanup task runs on a regular basis, you really can't find out much about how and why it runs or even when it will run next. As you can see, the Triggers column is blank, as is the Next Run Time column. You'll also notice that the History option is disabled. All you can see for sure are the date and time in the Last Run Time column.

In most cases, the Last Run Result shows 'The operation completed successfully. (0x0).' However, as you can see on this example system, the Last Run Result is the code 0x800F080A, which is cryptic to say the least. As far as I've been able to determine, it translates to 'session object updated, must recreate session.' So I assume that indicates a failure.

To manually launch the StartComponentCleanup task, right click it and select Run from the context menu. The Status column will then read Running. When the StartComponentCleanup task runs, it analyzes the contents of the WinSxS folder and looks for files that are identified as being safe to remove and that have been in the folder for at least 30 days after the updated component has been installed.

Keep in mind that running the StartComponentCleanup task will take a long time—and there isn't a gauge, like the one in Disk Cleanup, to keep you informed of the progress of the operation. Also note that when you run the StartComponentCleanup task manually, it's configured to automatically stop the task if it runs longer than one hour.

What's your take?

Windows 7 Cleanup Winsxs Folder

Have you used the StartComponentCleanup task in Windows 10? If so, what kind of disk space savings did you encounter? Share your advice and experiences with fellow TechRepublic members.

Also read...

  • From DOS to the golden age of Windows: The classic operating systems you can run in the browser (pictures)

Microsoft Weekly Newsletter

Can I Delete Winsxs Files

Be your company's Microsoft insider with the help of these Windows and Office tutorials and our experts' analyses of Microsoft's enterprise products. Delivered Mondays and Wednesdays

Can I Delete Winsxs

Sign up today Sign up today