How to uninstall Yarn on Windows
Keep package.json, yarn.lock and project-specific Yarn configuration before removing Yarn Classic.
This guide covers Yarn 1.22.22 installed per machine with winget (WiX, 32-bit registration). The program folder is %ProgramFiles(x86)%\Yarn. It is a command-line tool. This test saw no resident process.
Quit yarn if it is still running
Close any terminal that still has yarn. The process table was empty this time.
Remove it with its own uninstaller
A per-machine install needs an administrator to uninstall. The product code is in the 32-bit uninstall view. This test used:
msiexec /x {9C4264B2-06A3-4D5E-99B8-6EC942052E5D}
You can also uninstall Yarn from Settings, Apps, Installed apps.
Where the data is
After this uninstall the program folder was gone. %LOCALAPPDATA%\Yarn was listed for review and removed. It held a Yarn Berry cache of about 12 KB. The snapshot diff had no rows.
Check the result
Get-ItemProperty "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{9C4264B2-06A3-4D5E-99B8-6EC942052E5D}" -ErrorAction SilentlyContinue
Test-Path "${env:ProgramFiles(x86)}\Yarn"
Test-Path "$env:LOCALAPPDATA\Yarn"
- No output from that query does not prove the entry is absent when errors are suppressed. Confirm a successful query or an explicit missing-target result; a listed entry means it remains.
Falsefrom the other two means the program folder and the local data folder are both gone.
What Mole lists
| Location | Item | Default |
|---|---|---|
%LOCALAPPDATA%\Yarn |
Settings or app data; review before removal | Listed but not selected |
The MSI removed the program and the explicitly selected %LOCALAPPDATA%\Yarn folder. That folder was listed for review, not selected by default. A cache item seen in Clean was not cleaned during this test.
These defaults assume Remove data and settings with apps is off. Explicit Select all or Also remove user data can include the listed personal-data rows. Check the selection before confirming. Selected files that Mole removes go to the Recycle Bin; selected registry entries are backed up before removal. The vendor uninstaller has its own deletion behavior.
What this test covered
Recorded on 2026-10-19: Yarn, version 1.22.22, machine-wide, MSI, winget package Yarn.Yarn. The evidence comes from an ARM64 Windows test environment and a development build of Mole. It does not certify the current downloadable package or removal of real signed-in accounts, synchronized data or production projects.
Vendor documentation. The paths and removal results above are observations from the Windows test unless explicitly attributed to the vendor.
