Uninstall SDK#
This guide explains how to remove MCUXpresso SDK installations from your system.
Overview#
Uninstallation steps vary depending on how you installed the SDK:
GitHub Repository SDK - Remove workspace and optionally tools
Classic Package - Delete extracted files and IDE references
IDE-Integrated - Remove from IDE and optionally delete files
Uninstalling GitHub Repository SDK#
Remove Workspace#
The SDK workspace is simply a directory structure. To remove:
Windows:
cd ..
rmdir /s /q mcuxpresso-sdk
Linux/macOS:
cd ..
rm -rf mcuxpresso-sdk
This removes:
All SDK repositories
Build artifacts
Configuration files
Remove Development Tools (Optional)#
If you want to completely remove SDK development tools:
West Tool:
pip uninstall west
CMake, Ninja, Git:
These are general development tools
Only uninstall if not needed for other projects
Use system package manager or installer
ARM GCC Toolchain:
Delete installation directory
Remove environment variable (ARMGCC_DIR)
Windows:
# Remove from PATH via System Properties → Environment Variables
# Delete installation folder
rmdir /s /q "C:\Program Files (x86)\GNU Arm Embedded Toolchain"
Linux:
sudo apt remove gcc-arm-none-eabi # If installed via apt
# Or delete manual installation directory
Uninstalling Classic Package SDK#
Remove Extracted Files#
Simply delete the extracted SDK directory:
Windows:
rmdir /s /q "C:\MCUXpresso\SDK_2.15.0_FRDM-MCXW23"
Linux/macOS:
rm -rf ~/MCUXpresso/SDK_2.15.0_FRDM-MCXW23
Remove from MCUXpresso IDE#
Open MCUXpresso IDE
Window → Preferences → MCUXpresso SDK
Select SDK to remove
Click Remove
Click Apply and Close
Remove from IAR Embedded Workbench#
IAR doesn’t maintain SDK registry. Simply:
Delete extracted SDK folder
Remove any workspace references to SDK path
Remove from Keil MDK#
Uninstall CMSIS Pack:
Open Keil µVision
Project → Manage → Pack Installer
Find NXP SDK pack
Click Remove
Delete SDK Files:
Delete extracted SDK folder
Uninstalling IDE-Integrated SDK#
MCUXpresso IDE#
Remove SDK:
Window → Preferences → MCUXpresso SDK
Select SDK
Click Remove
Remove IDE (if desired):
Windows: Control Panel → Uninstall Programs → MCUXpresso IDE
Linux: Delete installation directory
macOS: Move application to Trash
Remove Workspace:
Delete workspace directory (contains projects and settings)
VS Code with MCUXpresso Extension#
Remove SDK Workspace:
Open VS Code
MCUXpresso extension → REPOSITORIES view
Right-click SDK → Remove
Or manually delete workspace directory.
Remove Extension:
Extensions view (Ctrl+Shift+X)
Find “MCUXpresso for VS Code”
Click Uninstall
Remove VS Code (if desired):
Follow standard VS Code uninstallation for your OS
Cleaning Build Artifacts#
Before uninstalling, you may want to clean build artifacts to free space:
GitHub Repository SDK#
cd mcuxpresso-sdk
west build -t clean # Clean current build
# Or delete entire build directory
rm -rf build/
Classic Package#
Navigate to example directories and delete build folders:
Windows:
cd boards\<board>\driver_examples\gpio\led_output\mdk
rmdir /s /q debug release
Linux/macOS:
cd boards/<board>/driver_examples/gpio/led_output/mdk
rm -rf debug release
Removing Environment Variables#
Windows#
System Properties → Advanced → Environment Variables
Remove SDK-related variables:
ARMGCC_DIRIAR_DIRMDK_DIRMCUXpresso_SDK_DIR
Remove SDK paths from
PATHvariable
Linux/macOS#
Edit shell profile (~/.bashrc, ~/.zshrc, etc.):
# Remove or comment out SDK-related exports
# export ARMGCC_DIR=/usr/local/gcc-arm-none-eabi
# export MCUXpresso_SDK_DIR=~/MCUXpresso/SDK
Reload shell:
source ~/.bashrc # or ~/.zshrc
Removing Configuration Files#
West Configuration#
# Remove global west configuration
rm -rf ~/.west/
Git Configuration (if SDK-specific)#
# Remove SDK-specific Git config
git config --global --unset-all user.name
git config --global --unset-all user.email
Note: Only do this if Git was configured solely for SDK development.
Disk Space Recovery#
After uninstallation, you can recover significant disk space:
Component |
Typical Size |
|---|---|
GitHub Repository SDK (complete) |
7-8 GB |
GitHub Repository SDK (board-specific) |
1-2 GB |
SDK Archive Package |
500 MB - 2 GB |
Build artifacts (per project) |
50-200 MB |
ARM GCC Toolchain |
500 MB - 1 GB |
MCUXpresso IDE |
1-2 GB |
Verify Disk Space Recovery#
Windows:
dir /s "C:\MCUXpresso"
Linux/macOS:
du -sh ~/MCUXpresso
Reinstallation#
If you need to reinstall the SDK later:
GitHub Repository SDK:
Follow GitHub Installation Guide
Previous workspace can be recreated from scratch
Classic Package:
Re-download from SDK Builder
Extract to desired location
IDE-Integrated:
Use IDE’s SDK import wizard
Follow IDE Import Wizard Guide
Troubleshooting Uninstallation#
Cannot Delete Files#
“File in use” errors:
Close all IDEs and terminals
Stop any running debug sessions
Restart computer if necessary
Permission errors:
Run command prompt/terminal as administrator
Check file permissions
Ensure you own the files
Leftover Registry Entries (Windows)#
Some IDEs may leave registry entries:
Generally harmless
Can be removed with IDE’s uninstaller
Or use registry cleaner (caution advised)
Broken IDE After SDK Removal#
MCUXpresso IDE:
Remove SDK references from workspace
Clean workspace: File → Switch Workspace → Clean
Restart IDE
VS Code:
Remove workspace folder from recent list
Reload window: Ctrl+Shift+P → Reload Window
Partial Uninstallation#
You may want to remove only parts of the SDK:
Remove Specific Middleware#
GitHub Repository SDK:
cd mcuxpresso-sdk
# Remove specific repository
rm -rf mcuxsdk/middleware/usb
# Update west to reflect changes
west update
Classic Package:
Delete middleware folder
May break examples that depend on it
Remove Build Artifacts Only#
Keep SDK but remove build outputs:
# GitHub Repository SDK
west build -t clean
# Classic Package
find . -name "debug" -type d -exec rm -rf {} +
find . -name "release" -type d -exec rm -rf {} +
Remove Documentation Only#
# Delete docs folder to save space
rm -rf docs/
Note: Documentation can be accessed online at https://mcuxpresso.nxp.com/
Complete System Cleanup#
For complete removal of all SDK-related components:
Remove SDK workspaces/packages
Uninstall development tools (west, CMake, etc.)
Uninstall toolchains (ARM GCC, IAR, Keil)
Uninstall IDEs (MCUXpresso IDE, VS Code)
Remove environment variables
Delete configuration files
Clean temporary files
Windows:
# Clean temp files
del /s /q %TEMP%\mcux*
del /s /q %TEMP%\west*
Linux/macOS:
# Clean temp files
rm -rf /tmp/mcux*
rm -rf /tmp/west*
Verification#
After uninstallation, verify removal:
# Check west is removed
west --version # Should show "command not found"
# Check SDK directory is gone
ls ~/MCUXpresso # Should not exist or be empty
# Check environment variables
echo $ARMGCC_DIR # Should be empty