Safe to Delete

Windows Installer Patch Cache Folder (C:\Windows\Installer\$PatchCache$)

Quick Answer: $PatchCache$ stores uncompressed baseline copies of Windows Installer patches. Deleting it via official command line tools is safe and reclaims space.

Bottom Line: It is **safe to clean up `$PatchCache

Bottom Line: It is **safe to clean up ** using official Windows Installer-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder) commands. Deleting the patch cache saves gigabytes on SSDs without corrupting installed software.


What is the $PatchCache$ Folder?

Located at `C:\Windows[Installer](/files/windows-installer-folder)$PatchCache

Bottom Line: It is safe to clean up PROTECTED_CODE_0 using official Windows Installer-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder) commands. Deleting the patch cache saves gigabytes on SSDs without corrupting installed software.


What is the $PatchCache$ Folder?

Located at , this hidden system folder is created by Windows Installer (MSI).

When you install service packs or software updates for applications like Microsoft Office or SQL Server, Windows Installer caches baseline copies of updated binary files in `$PatchCache

Bottom Line: It is safe to clean up PROTECTED_CODE_0 using official Windows Installer-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder) commands. Deleting the patch cache saves gigabytes on SSDs without corrupting installed software.


What is the $PatchCache$ Folder?

Located at PROTECTED_CODE_1, this hidden system folder is created by Windows Installer (MSI).

When you install service packs or software updates for applications like Microsoft Office or SQL Server, Windows Installer caches baseline copies of updated binary files in . This allows future patches to install faster without asking for original installation media.

Over time, `$PatchCache

Bottom Line: It is safe to clean up PROTECTED_CODE_0 using official Windows Installer-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder) commands. Deleting the patch cache saves gigabytes on SSDs without corrupting installed software.


What is the $PatchCache$ Folder?

Located at PROTECTED_CODE_1, this hidden system folder is created by Windows Installer (MSI).

When you install service packs or software updates for applications like Microsoft Office or SQL Server, Windows Installer caches baseline copies of updated binary files in C:\Windows\Installer. This allows future patches to install faster without asking for original installation media.

Over time, hoards 3 GB to 15 GB+ of duplicate installation files.


Can You Delete $PatchCache$?

✅ Yes, it is safe to disable and clear.

  • No software uninstall: Installed applications continue to function normally.
  • Safety rule: Do not delete files inside PROTECTED_CODE_2 directly, but clearing `$PatchCache

Bottom Line: It is safe to clean up PROTECTED_CODE_0 using official Windows Installer-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder) commands. Deleting the patch cache saves gigabytes on SSDs without corrupting installed software.


What is the $PatchCache$ Folder?

Located at PROTECTED_CODE_1, this hidden system folder is created by Windows Installer (MSI).

When you install service packs or software updates for applications like Microsoft Office or SQL Server, Windows Installer caches baseline copies of updated binary files in PROTECTED_CODE_2. This allows future patches to install faster without asking for original installation media.

Over time, PROTECTED_CODE_3 hoards 3 GB to 15 GB+ of duplicate installation files.


Can You Delete $PatchCache$?

✅ Yes, it is safe to disable and clear.

  • No software uninstall: Installed applications continue to function normally.
  • Safety rule: Do not delete files inside PROTECTED_CODE_4 directly, but clearing via rmdir or command flags is completely safe.

How to Safely Clean Up $PatchCache$

Method 1: Disable and Clear PatchCache via Command Prompt (Admin)

  1. Open Command Prompt as Administrator.
  2. Run the command to disable $PatchCache$ creation:
    reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v DisablePatchCache /t REG_DWORD /d 1 /f
  3. Purge the `$PatchCache

Bottom Line: It is safe to clean up PROTECTED_CODE_0 using official Windows Installer-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder)-folder) commands. Deleting the patch cache saves gigabytes on SSDs without corrupting installed software.


What is the $PatchCache$ Folder?

Located at PROTECTED_CODE_1, this hidden system folder is created by Windows Installer (MSI).

When you install service packs or software updates for applications like Microsoft Office or SQL Server, Windows Installer caches baseline copies of updated binary files in PROTECTED_CODE_2. This allows future patches to install faster without asking for original installation media.

Over time, PROTECTED_CODE_3 hoards 3 GB to 15 GB+ of duplicate installation files.


Can You Delete $PatchCache$?

✅ Yes, it is safe to disable and clear.

  • No software uninstall: Installed applications continue to function normally.
  • Safety rule: Do not delete files inside PROTECTED_CODE_4 directly, but clearing PROTECTED_CODE_5 via PROTECTED_CODE_6 or command flags is completely safe.

How to Safely Clean Up $PatchCache$

Method 1: Disable and Clear PatchCache via Command Prompt (Admin)

  1. Open Command Prompt as Administrator.
  2. Run the command to disable $PatchCache$ creation:
    rmdir /s /q %WinDir%\Installer\$PatchCache$
  3. Purge the folder: PROTECTED_CODE_7

Discussion

Loading authentication...

Related in windows

Chia Blockchain Mainnet Database (~/.chia/mainnet/db)

The Chia mainnet db folder stores full node blockchain blocks (blockchain_v2_mainnet.sqlite). Deleting forces re-sync.

Use Caution

How to Force Delete a Locked File or Folder in Windows 11 / 10

Fix 'The action cannot be completed because the file is open in another program' with Command Prompt, PowerShell, and Task Manager.

Safe to Delete

Why Is My Hard Drive Full But No Files Are Showing? (Hidden Bloat Solved)

Fix hard drives that appear full despite selecting all files showing low storage. Discover hidden shadow copies, System Volume Information, and pagefiles.

Safe to Delete
Back to all files