Share via

WinSxS occupying more space

Anonymous
2023-12-12T06:00:46+00:00

Hello,

I have windows server 2019 with two issues and i think both the connected.

1)Windows Cumulative Updates failed to install

2)C:\Windows\WinSxS\Temp\PendingDeletes consuming ~40 GB.

Is it safe to delete this manually ?

Windows for business | Windows Server | Devices and deployment | Install Windows updates, features, or roles

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Anonymous
    2023-12-13T09:03:21+00:00

    If disk cleanup did not clear the files from WinSxS, you can try using the Deployment Image Servicing and Management (DISM) tool to clean up the WinSxS folder. Here are the steps:

    1. Open Command Prompt as an administrator.
    2. Type the following command and press Enter: dism.exe /online /Cleanup-Image /StartComponentCleanup
    3. Wait for the process to complete. This may take some time.
    4. Type the following command and press Enter: dism.exe /online /Cleanup-Image /SPSuperseded
    5. Wait for the process to complete. This may take some time.

    These commands will clean up the WinSxS folder and remove any unnecessary files.

    8 people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2023-12-12T06:17:25+00:00

    Hi Ashokreddy Bhavanam,

    1. You can try to manually install the updates (Microsoft Update Catalog) or troubleshoot the issue using the Windows Update Troubleshooter. If these don't work, please provide me more information like error code, and more details.
    2. The WinSxS folder is an important component of Windows and should not be deleted manually. However, you can use the Disk Cleanup tool to safely remove unnecessary files from the WinSxS folder. To do this, follow these steps:
    3. Open Disk Cleanup by typing "disk cleanup" in the Start menu search bar and selecting the Disk Cleanup app.
    4. Select the drive where Windows is installed (usually C:).
    5. Click on the "Clean up system files" button.
    6. Check the box next to "Windows Update Cleanup" and any other items you want to remove.
    7. Click OK and then confirm that you want to delete the selected files.

    This should help free up some space on your server without risking any damage to the system.

    Best regards,

    Lei

    5 people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2023-12-13T06:29:23+00:00

    Thanks You Lei for your reply.

    I have tried disk cleanup but it did not clear the above mentioned files from WinSxS.

    Here is the screenshot what i get after CU install and reboot.

    3 people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2023-12-14T09:30:09+00:00

    Okay but how will i get my space back, it is consuming 40 GB and growing.

    2 people found this answer helpful.
    0 comments No comments
  5. Anonymous
    2023-12-14T07:47:10+00:00

    Tried that, here is the snippet from cmd. Still it did not cleanup WinSxS/Temp/PendingDeletes folder.

    2 people found this answer helpful.
    0 comments No comments