Run the supported DISM component cleanup to remove superseded Windows Update components, and treat device-driver packages separately rather than repeatedly running Disk Cleanup.
1. Clean Windows Update components with DISM
- Search for Command Prompt.
- Right-click it and select Run as administrator.
- Run:
Dism.exe /Online /Cleanup-Image /StartComponentCleanup
- Let the command finish, then restart Windows and check the free space under File Explorer → This PC.
This cleans superseded components immediately rather than waiting for the scheduled cleanup task’s grace period. Do not manually delete anything from C:\Windows\WinSxS; Microsoft warns that doing so can prevent Windows from starting or receiving updates. ^1^
Avoid adding /ResetBase initially. That option prevents all currently installed update packages from being uninstalled after cleanup.
2. If DISM fails or the Windows Update amount remains unchanged
Repair the component store and protected system files:
- Open Command Prompt as administrator.
- Run these commands in order:
DISM.exe /Online /Cleanup-Image /RestoreHealth
sfc /scannow
Dism.exe /Online /Cleanup-Image /StartComponentCleanup
Wait for each command to complete before starting the next. sfc /scannow should reach 100%. Microsoft documents RestoreHealth followed by SFC for repairing Windows servicing files. ^2^
If the commands complete successfully but little or no space is recovered, Windows may not currently have removable superseded components. Windows automatically retains some older components temporarily for rollback and later removes them through servicing. ^1^
3. Handle device-driver packages cautiously
Do not remove driver packages merely because Disk Cleanup lists them. Removing an active package can leave hardware without a working driver.
If there is a specific old device or driver you no longer use:
- Disconnect that device, if external.
- Search for and open Device Manager.
- Select View → Show hidden devices.
- Expand the relevant hardware category.
- Right-click the unused device and select Uninstall device.
- Select Delete the driver software for this device if that option appears, then select OK.
- Restart Windows.
Administrator rights are required, and the deletion option might not appear if the package is still required or permissions are insufficient. Windows can also rediscover a connected device and reinstall its driver. ^3^
Do not use pnputil /delete-driver unless the exact published driver name has been identified and a replacement driver is available; deleting the wrong package can stop the associated device from functioning.
Alternative Windows 11 cleanup view
To see whether Windows identifies other removable files, open:
Start → Settings → System → Storage → Cleanup recommendations
Review Temporary files and other categories, select only files you no longer need, and choose Clean up. Windows shows the estimated recoverable space before removal. ^4^
References
- Clean Up the WinSxS Folder
- [Windows 11](https://support.microsoft.com/windows/deployment/updates-lifecycle/troubleshoot-problems-updating-windows#repair-hard-drive-errors)
- Using Device Manager to uninstall devices and driver packages
- Free up drive space in Windows | Microsoft Support