How to uninstall Code::Blocks on Windows
Save Code::Blocks projects and compiler settings before uninstalling. This tested installation registered per user but placed its program in Program Files.
Quit the app
Close Code::Blocks 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 Code::Blocks and choose Uninstall. Use the vendor uninstaller rather than deleting its program folder.
winget uninstall --id CodeBlocks.CodeBlocks --exact
For this installation, winget invokes the registered removal method. It is not a separate cleanup of user data.
Check the result
winget list --id CodeBlocks.CodeBlocks --exact
Test-Path -LiteralPath "${env:ProgramFiles}\CodeBlocks" -ErrorAction Stop
Test-Path -LiteralPath "${env:APPDATA}\CodeBlocks" -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%\CodeBlocks |
Program files | Goes with the app row |
%APPDATA%\CodeBlocks |
Settings or app data; review before removal | Listed but not selected |
%APPDATA%\Microsoft\Windows\Start Menu\Programs\CodeBlocks |
Shortcut | Selected by default |
HKCU\SOFTWARE\CodeBlocks |
Registry entry | Listed but not selected |
%ProgramFiles%\CodeBlocks |
Usage records for this program | Selected by default |
The user settings were removed, but the program folder remained after the administrator cleanup did not complete. The test did not confirm a complete removal after approving UAC. If the program remains, use its uninstaller with the required administrator approval and check the folder again.
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-20: Code::Blocks, version 25.03, per-user, NSIS, winget package CodeBlocks.CodeBlocks. 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.