How can I remove Python from my Windows Machine?

To completely remove Python from a Windows machine, you need to uninstall it through the system settings, remove environment variables, and delete any remaining files. This guide covers the complete removal process.

Method 1: Using Windows Settings

Step 1: Open Apps & Features

Go to Start Menu ? Settings ? Apps ? Apps & features. Search for "Python" in the search box.

Step 2: Uninstall Python Versions

You'll typically see two entries for each Python version installed ?

  • Python 3.x.x (64-bit) - The main Python interpreter
  • Python 3.x.x Launcher - The Python launcher utility

Click on each entry and select Uninstall. Start with the main Python installation first, then remove the launcher.

Method 2: Using Control Panel

Open Control Panel ? Programs ? Programs and Features. Find Python entries in the list, right-click each one, and select Uninstall.

Remove Environment Variables

After uninstalling, remove Python from your system PATH ?

  1. Right-click This PC ? Properties ? Advanced system settings
  2. Click Environment Variables
  3. In System variables, find and select Path, then click Edit
  4. Remove any entries containing Python paths (e.g., C:\Python39\, C:\Python39\Scripts\)
  5. Click OK to save changes

Delete Remaining Files and Folders

Check these common locations for remaining Python files ?

Location Description
C:\Python3x\ Main Python installation directory
C:\Users\[Username]\AppData\Local\Programs\Python\ User-specific Python installation
C:\Users\[Username]\AppData\Roaming\Python\ Python user data and packages
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Python 3.x\ Start menu shortcuts

Delete these folders if they still exist after uninstallation.

Verify Complete Removal

To confirm Python is completely removed ?

  1. Open Command Prompt and type python --version
  2. If properly removed, you should see: 'python' is not recognized as an internal or external command
  3. Check the Registry Editor (regedit) for any remaining Python entries under HKEY_LOCAL_MACHINE\SOFTWARE\

Common Issues and Solutions

Issue: "Access denied" when deleting folders
Solution: Run File Explorer as administrator or take ownership of the folders.

Issue: Python still appears in PATH after removal
Solution: Restart your computer or manually edit environment variables again.

Conclusion

Complete Python removal requires uninstalling through system settings, removing environment variables, and deleting remaining files. Always verify removal by testing the python command in Command Prompt to ensure clean uninstallation.

Updated on: 2026-03-26T21:54:18+05:30

6K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements