How to uninstall CMake on Windows
Keep source directories, CMakeLists.txt files and any build presets you need before removing CMake.
Quit the app
Close CMake and any work it is running, then use Task Manager (Ctrl+Shift+Esc) to check for its remaining processes.
Use its uninstaller
Open Settings › Apps › Installed apps, find CMake and choose Uninstall. Use the vendor uninstaller rather than deleting its program folder.
winget uninstall --id Kitware.CMake --exact
For this installation, winget invokes the registered removal method. It is not a separate cleanup of user data. Windows may ask for administrator approval.
Check the result
winget list --id Kitware.CMake --exact
Test-Path -LiteralPath "${env:ProgramFiles}\CMake" -ErrorAction Stop
Read winget's result as well as its exit status: an explicit no-installed-package result concerns only this package, while a source, access or query error leaves the answer unknown. A successful Test-Path returning True means that exact location remains; False means it is absent. Neither result checks other paths. The commands do not delete anything.
What Mole lists
| Location | Item | Default |
|---|---|---|
%ProgramFiles%\CMake |
Program files | Goes with the app row |
%ProgramData%\Microsoft\Windows\Start Menu\Programs\CMake |
Shortcut | Selected by default |
HKCU\SOFTWARE\Kitware\CMake |
Registry entry | Listed but not selected |
%ProgramFiles%\CMake |
Usage records for this program | Selected by default |
The selected program folder was removed; the listed shortcuts, CMake key and usage records were already absent. HKCU\Software\Kitware\CMakeSetup\Settings remained unlisted with cmake-gui settings. Keep the Kitware parent and review that exact settings key separately.
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: CMake, version 4.4.4, machine-wide, MSI, winget package Kitware.CMake. 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.
