|

How To Uninstall Python Completely On Windows (2026)

Quick answer

  • If Python came from the Python install manager, open a terminal, run py list to see what is installed, run py uninstall –purge to remove every runtime it manages, then remove the manager itself in Start > Installed apps.
  • Run the purge before removing the manager: the documentation says removing the manager alone leaves the runtimes in place, and it takes away the global python and py commands.
  • If Python came from the older full installer, use Programs and Features, select Python and choose Uninstall/Change; the older Python launcher has its own entry in Installed apps.

Applies to: Python on Windows, Python 3.15.2 documentation

This guide is for anyone who wants Python gone from a Windows PC, for example to fix a broken install or to start again from a clean state.

The right steps depend on how Python was installed, because the install manager, the older full installer and the older launcher each have their own removal route.

Everything below comes from the “Using Python on Windows” page of the official Python documentation, read on November 29, 2026.

Table of Contents

Quick answer: pick your install type

How Python was installedHow to remove it
Python install manager (Microsoft Store, python.org or WinGet)py uninstall --purge, then remove the manager in Installed apps
Full installer (python-3.x.exe)Programs and Features, select Python, Uninstall/Change, Uninstall
Older Python launcherInstalled apps, search Python launcher, uninstall it
You are not sureRun py list first and look in Installed apps for Python entries

Step 1: see what is installed

Open a terminal and run the command below to list the runtimes the install manager knows about.

py list

The documentation says py list shows your default runtime, and that the --only-managed option leaves out runtimes the manager did not install.

Then click Start, open Installed apps and search for Python to see every entry Windows has, including the older launcher and any older full installs.

Step 2: remove runtimes from the install manager

To remove one runtime, the documentation gives this form, where TAG is the version tag shown by py list.

py uninstall <TAG>

Adding -y or --yes skips the confirmation.

To remove everything the manager installed, use the purge option.

py uninstall --purge
What –purge doesWhat it does not do
Removes all runtimes managed by the install managerDoes not touch runtimes the manager did not install
Removes Start menu entries, registry entries and the download cacheDoes not delete configuration files you created by hand

Step 3: remove the install manager itself

  1. Click Start and open Installed apps.
  2. Find the Python install manager entry.
  3. Choose the option to uninstall it.

The documentation warns that this does not remove any runtimes, but it does remove the global python and py commands.

That is why it says to run --purge before uninstalling the manager if you want every runtime gone.

For a Store or MSIX install, the documentation also gives a PowerShell route.

Get-AppxPackage PythonSoftwareFoundation.PythonManager | Remove-AppxPackage

This removes the manager package, and it has the same effect on runtimes as the Installed apps route.

If you installed the manager more than once

The documentation says the Store or WinGet version, the MSIX from python.org and the MSI can all be installed together without conflict.

They share configuration and runtimes, so check Installed apps for more than one manager entry after the purge.

Remove a Python from the full installer

Older Python versions were installed with a python-3.x.exe file, which the documentation now describes as the deprecated full installer.

  1. Open Programs and Features.
  2. Select the Python entry.
  3. Click Uninstall/Change.
  4. Choose Uninstall.

The documentation says this removes Python entirely, except for the Python install manager, which has its own entry in Programs and Features.

The same dialog also offers Modify and Repair, which you can use instead if the install is only damaged.

Option in the dialogWhat the documentation says it does
ModifyAdds or removes features with checkboxes, but cannot change the install directory
RepairChecks installed files against the current settings and replaces missing or changed ones
UninstallRemoves Python entirely, except the install manager

If you need a different install directory, the documentation says you must remove Python and reinstall it.

Remove the older Python launcher

The older py.exe launcher is a separate program and is not removed by the steps above.

Click Start, open Installed apps, search for Python launcher and uninstall it.

The documentation says that when the older launcher is present its py command overrides the install manager one, so remove it if py behaves oddly after a clean-up.

Clean up PATH and settings

If you or an installer added Python folders to PATH, the documentation says you may need to undo those changes before a fresh install.

One folder it names is %LocalAppData%\Python\bin, which the manager offers to add, and you can edit PATH from Start by searching for Edit environment variables for your account.

Our guide to editing environment variables and PATH in Windows 11 walks through that screen.

The documentation gives the user configuration file as %AppData%\Python\pymanager.json, so delete that file yourself if you created one and want a fully clean start.

Check that Python is gone

Open a new terminal and type python, then py.

After a full removal each command should report that it is not found or send you to install Python, instead of opening an interpreter.

One caution from the documentation: the python command installs the latest release for you if none is present, so do not run it unless you want Python back.

When you are ready to reinstall, read our guide to fixing Python not recognized on Windows after the new install.

Source

Leave a Reply

Your email address will not be published. Required fields are marked *