HOWTO · Python
How to Completely Uninstall Python From Windows
This tutorial demonstrates how to completely uninstall Python from a Windows device. Follow our step-by-step guide to remove Python effectively, ensuring no residual files or settings are left behind. Whether using the Control Panel, command line, or manual removal methods, we cover all you need to know for a clean uninstallation. Get started today!
On this page
To remove Python from Windows, start in Settings > Apps > Installed apps (or Apps & features on older Windows versions) and uninstall the specific Python entries you no longer need. Check each version before removing it: a system-wide install, a per-user install, and a Microsoft Store install may appear separately. Then inspect PATH and clean up only confirmed leftovers. A command such as python --version identifies the interpreter Windows finds first; it does not list every installation.
Method 1: Uninstalling Python via Control Panel
Open Settings > Apps > Installed apps and search for Python. Review the displayed version and publisher, select the entry you intend to remove, choose Uninstall, and follow the prompts. On Windows versions that use the older interface, open Control Panel > Programs > Programs and Features and select the matching Python entry. Repeat for each version you mean to remove; keeping another version is fine if an application still needs it.
You can run python --version in Command Prompt to see which Python command resolves on PATH. Treat that as a quick check, not an inventory: the result may point to one version while other installations remain registered or stored elsewhere.
Method 2: Removing Python from Environment Variables
Uninstalling an entry does not always remove environment-variable references. Search Start for Edit the system environment variables, open Environment Variables, and inspect both the user and system sections. In each Path value, remove only entries that you have confirmed point to the Python installation being removed, such as that installation’s folder and its Scripts subfolder. Check for PYTHONPATH as well, and remove or update it only if it refers to files that are no longer needed. Other tools may use these values, so leave unrelated entries intact. Confirm each dialog with OK.
To review a copied Windows Path value before editing it, this snippet prints entries whose folder names contain “Python.” It does not change Windows settings; confirm each result belongs to the installation you plan to remove.
path_value = r"C:\Windows\System32;C:\Users\Ava\AppData\Local\Programs\Python\Python312;C:\Users\Ava\AppData\Local\Programs\Python\Python312\Scripts"
for entry in path_value.split(";"):
if "python" in entry.lower():
print(entry)
C:\Users\Ava\AppData\Local\Programs\Python\Python312
C:\Users\Ava\AppData\Local\Programs\Python\Python312\Scripts
Method 3: Deleting Python from the Command Line
Windows does not provide one dependable built-in command that uninstalls every Python distribution and version. Avoid broad WMIC product queries and commands that delete a file named python.exe; they can miss installations or remove only a launcher. For a command-line way to open the classic uninstall list, run appwiz.cpl, then choose the exact Python entry and use its Uninstall option. If an installation came from the Microsoft Store or another package manager, remove it through that source’s installed-app entry.
Method 4: Manual Removal of Python Files
Use manual cleanup only after uninstalling the matching app entry. Check the installation location shown in the app entry or the folder you chose during setup. Common locations include a Python folder under your user profile’s AppData\Local\Programs and folders under C:\Program Files; installations can also be elsewhere. Delete a folder only after confirming it belongs to the removed Python installation. Do not delete every folder or file with “python” in its name.
Keep project folders separate from installation folders. A virtual environment may also remain inside a project; back it up if needed, and remember it may not work after its base interpreter is removed. Recreate it with a retained or newly installed Python version when needed.
Conclusion
Remove the intended version through Windows’ installed-app list, review only its confirmed PATH or PYTHONPATH references, and delete leftover installation files only when you can identify them. To check what remains, review Installed apps, inspect the paths you know were used, and open a new terminal to check the Python command. If python is not recognized, that shows Windows did not find it on PATH; it does not prove that every Python installation is gone.
FAQ
- How can I check which Python version is installed? Run
python --versionto see the version found first on PATH, then review Installed apps for other registered versions. - Do I need to remove every version before reinstalling? No. Remove only versions causing a conflict or that you no longer need; multiple versions can coexist.
- Will uninstalling Python delete my project files? The uninstall process is for the selected installation. Keep project files in their own folders and make a backup before manual cleanup.
- What if Python is not listed in Control Panel? Check Settings > Apps > Installed apps, the Microsoft Store, or the package manager used to install it. A manually extracted copy may not have an app-list entry; locate its confirmed installation folder before removing it.
- What happens to virtual environments? They may remain on disk, but environments based on the removed interpreter can stop working. Back up anything needed and recreate the environment with an available interpreter.