Cleanup Update doesn't appear. Can't clean WinSxS

Sergi Díaz Ruiz 240 Reputation points
2023-05-06T12:36:13.1866667+00:00

Morning!!

How can I clean WinSxS folder? I try with DISM.exe, clean disk etc...

Complete the command but never clean WinSxS.. Always have the same space free..

Why the cleanup never works?

TIA!!

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 36,401 Reputation points
    2023-05-06T13:28:49.8233333+00:00

    What are you looking at to determine that there is anything to clean up?

    On my Win11 laptop I have seen where cleanmgr would report that there was Windows Update Cleanup available, but for whatever reason it would not clean that. I tried multiple times but it still showed. I just let it go. Some months later, after applying Windows Updates, I noticed that this went away. Some updates are what I would call the equivalent of the old service packs or maybe call it an OS update, and one of them fixed my cleanup issue.

    User's image

    Does DISM report "Component Store Cleanup Recommended : Yes"?

    C:\Utils>Dism.exe /online /cleanup-image /AnalyzeComponentstore
    
    Deployment Image Servicing and Management tool
    Version: 10.0.22621.1
    
    Image Version: 10.0.22621.1555
    
    [===========================99.4%========================= ]
    
    Component Store (WinSxS) information:
    
    Windows Explorer Reported Size of Component Store : 9.09 GB
    
    Actual Size of Component Store : 8.82 GB
    
        Shared with Windows : 5.89 GB
        Backups and Disabled Features : 2.44 GB
        Cache and Temporary Data : 489.75 MB
    
    Date of Last Cleanup : 2023-04-25 20:53:57
    
    Number of Reclaimable Packages : 0
    Component Store Cleanup Recommended : No
    
    The operation completed successfully.
    

    If it does, what does "Dism.exe /online /Cleanup-Image /StartComponentCleanup" report? Any errors?

    1 person found this answer helpful.

  2. MotoX80 36,401 Reputation points
    2023-05-08T12:58:35.04+00:00

    I have 13.587 files in WinSxS, but take arround 6Gb...

    Sounds about right. My Win10 Pro VM is using close to 7 gig.

    I never run windows update clkeanup because not showed.

    I have no way of knowing what is happening on your pc.

    What command do you use to resetdatabase ?

    No, you ran that command. In the image you shared you ran "dism startcomponentcleanup" twice, the second time with the /ResetBase switch.

    My problem is with space of disk... I have low space and all it's take of OS and WinSxS..

    I don't think that winsxs is your problem. Download and run Treesize Free and analyze disk space usage.

    https://www.jam-software.com/treesize_free

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.