Uninstall Python on Windows
It depends on how Python arrived. For the Python install manager run py uninstall --purge, then remove the manager in Installed apps. For the older full installer, choose Uninstall/Change, then Uninstall. The catch: removing it deletes only what the installer put there, so virtual environments and PATH entries stay.
Checked November 10, 2026 against the manufacturer's own pages.
The short version
What to install and where it comes from. Every link goes to the manufacturer or Microsoft, never to a copy.
Official files only, nothing bundled
Step by step
Work out how you installed it
Python can come from the install manager, the python.org full installer, the Microsoft Store or WinGet. The Python docs say the manager, Store, WinGet and MSIX installs share configuration and runtimes.
Install manager route
Open a terminal and run py uninstall --purge to remove all managed runtimes with their shortcuts, registry entries and download caches. Then uninstall the Python install manager itself in Installed apps.
Legacy installer route
In Settings, Apps, Installed apps (Programs and Features on Windows 10) pick the Python entry, choose Uninstall/Change and then Uninstall. The Python install manager keeps its own separate entry.
Tidy PATH and aliases
Remove Python folders you added to PATH yourself, including %LocalAppData%\Python\bin. Keep %UserProfile%\AppData\Local\Microsoft\WindowsApps on PATH. Turn off the Python entries in Manage app execution aliases.
Check your own project folders
Virtual environments created with python -m venv are ordinary folders in your projects. They stop working without the base install; delete or rebuild them as you need.
If it still will not go, or leaves files behind
Windows removes the program but often leaves folders, registry keys and background services. An uninstaller tool runs the normal removal first, then scans for what was left and deletes it, and can force out programs whose own uninstaller is broken.
Remove stubborn programs and their leftovers
Runs the program's own uninstaller, then finds leftover files, registry entries and browser add-ons. Has a force uninstall for broken entries.
IObit Uninstaller · Free version · Windows 11, 10, 8.1, 8, 7
One language, several ways to arrive
The reason this uninstall looks confusing is that Python has had more than one installer. The current route is the Python install manager, a small app that downloads and manages runtimes. Before that there was the full installer from the python.org site, and Windows can also fetch Python through the Microsoft Store and WinGet. The Python documentation lists them separately, with a different removal method for each, so the first job is to see which one you have.
What the purge flag does
For managed runtimes the docs describe a purge option that removes every runtime the manager installed, along with its Start menu shortcuts, registry entries and cached downloads. It does not touch runtimes installed another way. It also does not delete configuration files that you created by hand. Removing the manager afterwards takes away the global python and py commands, so run the purge before you uninstall it.
What stays behind
Python’s own files are removed, but your work is not. Virtual environments, requirements files and scripts remain in your project folders. PATH edits you made by hand also remain until you clear them. The documentation even warns not to remove the WindowsApps entry from PATH, because other app shortcuts depend on it.
What you lose
Any tool that runs Python scripts, such as some build helpers, will report that it cannot find the interpreter. If that happens, installing the version named in the error message fixes it. Pip packages installed globally go with the runtime and must be installed again.
Questions
Why does the python command still open the Store?
The Microsoft Store alias is still on. Turn off the Python entries under Manage app execution aliases.
Does py uninstall --purge touch my scripts?
It removes managed runtimes and caches. The docs say manually created configuration files are not affected.
Will other programs break?
Tools that need a system Python may fail. Install the version they ask for.
Where is the user config file?
The Python docs mention %AppData%\Python\pymanager.json as the install manager's user configuration, which purge leaves alone.