I've tried the cmd command and Windows cleaner with elevated privileges, but neither has cleaned the WinSxS folder. It says that the task has been completed in the CMD, but WinSxS is still 14 GB. I'm using Windows 7 Home Premium x64.
-
What does [du](http://technet.microsoft.com/en-us/sysinternals/bb896651.aspx) report it's space as used? Also check your entire `Windows` directory with `du` otherwise you will be double counting files. – Scott Chamberlain Sep 20 '13 at 18:31
-
1possible duplicate of [16GB winsxs folder on windows vista](http://superuser.com/questions/151899/16gb-winsxs-folder-on-windows-vista). Also check [Can winsxs be moved and if so how?](http://superuser.com/questions/184839/can-winsxs-be-moved-and-if-so-how) for more information. – Doktoro Reichard Sep 20 '13 at 18:31
3 Answers
Windows 7's KB 2852386 update, "Update is available that enables you to delete outdated Windows updates by using a new option in the Disk Cleanup wizard in Windows 7 SP1", now allows Disk Cleanup to clean up the WinSxS folder. From KB 2852386's Knowledge Article page:
This article describes an update for the Disk Cleanup wizard in Windows 7 Service Pack 1 (SP1).
This update adds a new plugin to the Disk Cleanup wizard. After you install this update, you can use the Windows Update Cleanup option to delete Windows updates that you no longer need.
Notes
- The Windows Update Cleanup option is available only when the Disk Cleanup wizard detects Windows updates that you do not need on the computer.
- To enable you to roll back to previous updates, updates are stored in the WinSxS store even after they are superseded by later updates. Therefore, after you run the Disk Cleanup wizard, you may be unable to roll back to a superseded update. If you want to roll back to a superseded update that the Disk Cleanup wizard deletes, you can manually install the update.

More info at KB 2852386's Knowledge Article page
- 6,188
- 16
- 78
- 120
-
This does not work. Why does MS make such a simple thing hard to do. – user55570 Oct 07 '17 at 06:34
The cleaning command only cleans the files used by Windows Update on upgrading to Windows SP1 (see this for more information). At any rate, the difference in size before and after is relative for most users, but it ranges about the 1GB mark.
There are good reasons not to wipe the wiwsxs folder completely. Quoting from Wikipedia:
From Vista onward the operating system also uses WinSxS for its core components.
- 5,390
- 5
- 35
- 42
-
1I disagree. Those are not good reasons. Bloated OS adding more bloat. And MS making it hard to opt out for those that want different. – user55570 Oct 07 '17 at 06:36
The only way to cleanup the WinSxS folder is to check all installed Updates and look which updates are replaced by newer updates and remove those old updates. In Windows 8 Microsoft added an automatic cleanup which does the check for you and removes the updates.
- 97,301
- 30
- 179
- 245
-
2You can get a hotfix for Windows 7 SP1 now that fixes this as well: http://support.microsoft.com/kb/2852386 – Mark Henderson Oct 09 '13 at 00:53
-
@MarkHenderson thanks for pointing to the KB article. I'll try it later and look if it works the same way like Windows 8. – magicandre1981 Oct 09 '13 at 04:03
-
the update has some limitations and bugs and removes updates which are not replaced by newer ones. So it is better to wait for a newer version of the fix. – magicandre1981 Oct 09 '13 at 18:02