Installer and WinSxS folder huge size

WinTechie 281 Reputation points
2020-09-24T07:55:06.58+00:00

Hi,

C: drive of my server is almost full, total capacity of is 60 GB.
Size of the "C:\windows\Installer" folder is around 17 GB, Would like to know the use this folder and if cleanup can be done to recover some free space considering it is physical server.

Windows Server 2012
Windows Server 2012
A Microsoft server operating system that supports enterprise-level management, data storage, applications, and communications.
1,534 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,205 questions
{count} vote

5 answers

Sort by: Most helpful
  1. Leon Laude 85,666 Reputation points
    2020-09-24T08:09:46.363+00:00

    Hi @WinTechie ,

    The C:\Windows\Installer folder contains Windows installer cache, it's used to store important files for applications installed using the Windows Installer technology and should not be deleted.

    The installer cache is used to maintain (remove / update) the applications and patches installed on the computer. The installer files are a record of file versions and registry dependencies involved in a particular application or application update installation. The availability of this record in the cache helps to uninstall and update applications properly.

    For more information, you can refer to the blog post over here:
    https://learn.microsoft.com/en-us/archive/blogs/joscon/can-you-safely-delete-files-in-the-windirinstaller-directory

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    4 people found this answer helpful.

  2. Jenny Feng 14,081 Reputation points
    2020-09-24T08:32:41.493+00:00

    @WinTechie
    Hi,

    No, You can't just delete everything in the WinSxS folder.

    Deleting files from the WinSxS folder or deleting the entire WinSxS folder may severely damage your system so that your PC might not boot and make it impossible to update.

    You can, however, reduce the size of the WinSxS folder using tools built into Windows.

    You could refer to the following official article as your reference:
    https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/clean-up-the-winsxs-folder

    You can use Disk Cleanup to reduce the number of unnecessary files on your drives, which can help your PC run faster. It can delete temporary files and system files, empty the Recycle Bin, and remove a variety of other items that you might no longer need.

    Hope above information can help you.

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

  3. Lokesh Sutaar 1 Reputation point
    2020-09-24T12:34:17.877+00:00

    You can simply use Disk Cleanup and clean up the unwanted files from WinSxS folder as well or you can remove the unwanted features directly from powershell


  4. Troy 1 Reputation point
    2022-04-01T02:28:49.647+00:00

    If you looking through the properties of each installer files, I think it is safe to delete as long as you recognize what is it ,and you know how to reinstall it .

    0 comments No comments

  5. Dominique Hache 1 Reputation point
    2022-07-08T02:21:01.063+00:00

    Can *.tmp files within that C:\Windows\Installer be removed or are those needed as well?

    0 comments No comments