{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiepcnsexu553g52ybtvf2fmorqesoktu4y4udmb4xniuggphcrdf4",
"uri": "at://did:plc:ws6dhxzqnqxu5aqxt4kd27oc/app.bsky.feed.post/3mmsxwj4e2h62"
},
"coverImage": {
"$type": "blob",
"ref": {
"$link": "bafkreigdw7jvaj27xfvvpgp7mhywa3dkqha7z3zmaof4lqsnoigjdh4iue"
},
"mimeType": "image/png",
"size": 1111412
},
"description": "Reduce the component store size using built-in tools without breaking updates or system recovery.",
"path": "/how-to-safely-shrink-the-winsxs-folder-in-windows-11/",
"publishedAt": "2026-05-27T07:22:17.000Z",
"site": "https://allthings.how",
"textContent": "The WinSxS folder sits inside `C:\\Windows\\WinSxS` and holds the Windows component store, which keeps the files needed to install updates, enable optional features, roll back changes, and repair the operating system. It grows over time as Windows 11 retains older versions of components alongside newer ones, and File Explorer usually reports it as much larger than it really is because most of its contents are hard links to files that already exist elsewhere on the drive.\n\n**Quick answer:** Open an elevated terminal and run `Dism.exe /online /Cleanup-Image /StartComponentCleanup`. To remove all superseded component versions, append `/ResetBase`, knowing that installed updates can no longer be uninstalled afterward.\n\n⚠️\n\nNever delete files inside WinSxS manually or remove the folder itself. Doing so can prevent Windows 11 from booting, block future updates, and break system repair.\n\n* * *\n\n### Check the real size before cleaning\n\nFile Explorer counts hard-linked files multiple times, so the reported size is misleading. The accurate figure comes from DISM's component store analysis, which also tells you whether a cleanup will actually free space.\n\nOpen Terminal as administrator and run:\n\n\n Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore\n\n\nThe output breaks the store into categories that explain where the space goes and how much of it is actually reclaimable.\n\nField| What it means\n---|---\nWindows Explorer Reported Size| The inflated size Explorer shows, counting hard links multiple times.\nActual Size of Component Store| The true on-disk footprint after accounting for hard links.\nShared with Windows| Files used by the running system through hard links. Not real overhead.\nBackups and Disabled Features| Older component versions and disabled feature payloads kept for rollback.\nCache and Temporary Data| Internal servicing data used to speed up updates and cleanup.\nNumber of Reclaimable Packages| Superseded packages that cleanup can remove.\nComponent Store Cleanup Recommended| Yes or No, based on whether cleanup would meaningfully shrink the store.\n\nThe actual overhead is roughly the sum of _Backups and Disabled Features_ plus _Cache and Temporary Data_. Everything else is either shared with Windows or essential system data that cleanup will not touch.\n\n* * *\n\n### Run the StartComponentCleanup scheduled task\n\nWindows 11 already ships with an automatic cleanup job called StartComponentCleanup. It runs during idle time and waits at least 30 days after an update before removing the previous version of a component, giving you a window to uninstall a problematic update. When you trigger it manually, the same 30-day grace period applies, and the task has a one-hour timeout, so it may not finish in a single pass on heavily updated systems.\n\n**Step 1:** Press the Windows key, type _Task Scheduler_ , and open the app. In the left pane, expand to `Task Scheduler Library\\Microsoft\\Windows\\Servicing`.\n\n**Step 2:** Select the **StartComponentCleanup** task in the middle pane, then click **Run** under _Selected Item_ on the right. The task starts silently and works in the background.\n\n**Step 3:** Watch for the _TiWorker.exe_ process (Windows Modules Installer Worker) in Task Manager to confirm it is running. Let it finish on its own, or click **End** in Task Scheduler if you need to stop it early.\n\nYou can also kick it off from an elevated Command Prompt or PowerShell with a single line:\n\n\n schtasks.exe /Run /TN \"\\Microsoft\\Windows\\Servicing\\StartComponentCleanup\"\n\n\nA _SUCCESS_ message means the scheduler accepted the request. Cleanup itself continues in the background.\n\nTo make this routine, you can add a custom Trigger to the task so it runs on a schedule of your choosing, such as monthly after Patch Tuesday.\n\n* * *\n\n### Use DISM for a deeper cleanup\n\nDISM gives you the same engine without the 30-day wait and without the one-hour timeout. It is the preferred option after a large feature update or cumulative update has bloated the store.\n\nOpen Terminal as administrator and run:\n\n\n Dism.exe /online /Cleanup-Image /StartComponentCleanup\n\n\nThis removes superseded component versions immediately and applies delta compression where possible. Expect it to take several minutes on a typical PC and longer on systems with years of update history.\n\nRunning the DISM StartComponentCleanup command in an elevated terminal.\n\nWhen the operation finishes, run `Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore` again to compare the new size against the original.\n\n* * *\n\n### Reclaim more space with /ResetBase\n\nThe `/ResetBase` switch goes further by stripping out every superseded version of every component. The trade-off is permanent: once it completes, you cannot uninstall any update that was already on the system. Future updates can still be removed normally.\n\n\n Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase\n\n\n⚠️\n\nOnly run /ResetBase on a stable system you are confident you will not need to roll back. After it completes, installed updates become a permanent part of the base image.\n\nFor systems with a service pack still present (rare on modern Windows 11 installs), the equivalent legacy command is:\n\n\n Dism.exe /online /Cleanup-Image /SPSuperseded\n\n\nAfter running it, the service pack can no longer be uninstalled.\n\n* * *\n\n### Disk Cleanup and Storage Sense for casual cleanup\n\nIf you prefer a graphical tool, the built-in Disk Cleanup utility can remove Windows Update leftovers that contribute to component store overhead.\n\n**Step 1:** Press Win + R, type `cleanmgr`, and press Enter. Pick the system drive and click OK.\n\n**Step 2:** Click **Clean up system files** , choose the system drive again, then tick **Windows Update Cleanup** along with any other entries you want to remove. Click OK to start.\n\nStorage Sense in Settings handles temporary files and is useful alongside DISM, but it does not directly clean the WinSxS folder. Open **Settings > System > Storage > Temporary files**, deselect the Recycle Bin and Downloads if you want to keep them, and click **Remove files**.\n\n* * *\n\n### What each method actually does\n\nMethod| Removes| Caveat\n---|---|---\nTask Scheduler (StartComponentCleanup)| Component versions older than 30 days| 1-hour timeout; may not finish in one run\nDISM /StartComponentCleanup| All superseded component versions, immediately| No 30-day grace; takes longer than the scheduled task\nDISM /StartComponentCleanup /ResetBase| Every superseded version of every component| Existing updates can never be uninstalled\nDISM /SPSuperseded| Service pack backup files| Service pack cannot be uninstalled afterward\nDisk Cleanup (Windows Update Cleanup)| Old Windows Update payloads| Smaller savings than DISM in most cases\n\n* * *\n\n### How to confirm cleanup worked\n\nRe-run `Dism.exe /Online /Cleanup-Image /AnalyzeComponentStore` and compare the _Actual Size of Component Store_ , _Number of Reclaimable Packages_ , and _Date of Last Cleanup_ against the values from before. A successful cleanup updates the cleanup date, reduces reclaimable packages toward zero, and lowers the actual size. The _Component Store Cleanup Recommended_ line typically flips to **No** once there is nothing meaningful left to remove.\n\nIf you ran `/ResetBase`, expect the largest drop, often several gigabytes after a recent feature update. If the size barely changes, the system was already optimized and the automatic StartComponentCleanup task has been doing its job in the background.\n\n* * *\n\n### Common reasons cleanup does not free space\n\n * The 30-day grace period is still active for recent updates when you run the scheduled task. Use DISM with `/StartComponentCleanup` to bypass it.\n * Another servicing operation is in progress. Reboot, then rerun the command.\n * You ran `/ResetBase` previously and there are no superseded versions left to remove.\n * Most of the reported size is shared with Windows through hard links, which cleanup will not and should not remove.\n\n\n\nTreat the component store as a self-maintaining system that occasionally needs a nudge, not a folder you manage by hand. Stick to DISM, the StartComponentCleanup task, and Disk Cleanup, and Windows 11 will keep itself trim without risking the next update or recovery.",
"title": "How to Safely Shrink the WinSxS Folder in Windows 11",
"updatedAt": "2026-05-27T07:22:19.420Z"
}