logo
search
list

Table of Content

What “Uninstall WSL” Can Mean
Back Up Before You Destroy Data
Unregister Every Linux Distribution
Uninstall the Distro Apps from Windows
Remove the WSL App Package (Optional Completeness)
Disable Windows Features for a Full Removal
Verify Removal and Reclaim Space
Common Failures
When You Should Not Fully Uninstall
Before You Unregister: Save Office Files Outside the Distro
FAQ
Free Office Download

Uninstall Windows Subsystem for Linux Completely

Posted by Algirdas Jasaitis

calendar

2026-07-27

views

868

likes

59

To uninstall Windows Subsystem for Linux, first list distros with wsl -l -v, back up anything you need, then remove each distribution with wsl --unregister DistroName (this deletes that distro’s data). Uninstall the Linux apps from Settings if they remain, optionally remove the WSL package, and disable the related Windows features if you want WSL gone completely. Success means wsl -l -v shows no distributions (or WSL is unavailable) and you no longer launch Ubuntu/Arch from Start.

Shortest safe path: export if needed → wsl --shutdownwsl --unregister for each distro → uninstall Store apps → disable features → reboot → verify. Platform basics: Windows Subsystem for Linux overview. To set WSL up again later, use how to install Windows Subsystem for Linux.

Uninstall Windows Subsystem for Linux on Windows
Unregister distributions first; that step permanently deletes the Linux filesystem for that distro.
100% secure

What “Uninstall WSL” Can Mean

People use the same phrase for three different goals:

  • Remove one distro (for example Ubuntu) but keep WSL available for another.

  • Remove all distros and reclaim disk, but leave optional features enabled.

  • Fully disable WSL on the PC (distros + optional components / Store WSL package).

Microsoft’s documented destructive step for a distribution is wsl --unregister: it unregisters the distro and permanently deletes associated data. Ask Ubuntu’s highest-voted “uninstall Ubuntu from WSL” answers also land on unregister when Settings uninstall alone left leftovers.

Decide your goal before typing anything. If you only hate one broken Ubuntu instance, unregister that name—do not disable Virtual Machine Platform yet. If you are wiping a spare laptop, plan the full path including feature disable and reboot.

Back Up Before You Destroy Data

wsl --unregister is not a soft “remove shortcut.” Per Microsoft, data, settings, and software inside that distro are permanently lost. Reinstalling from the Store gives a clean distro, not your old home directory.

wsl -l -v
wsl --shutdown
wsl --export Ubuntu D:\backups\ubuntu-backup.tar

Export to a Windows drive you control (D:\backups\), not only inside the distro you are about to delete. Confirm the tar exists and is non-trivial in size before unregistering. If you only need a few project folders, copy them to C:\Users\You\Documents\from-wsl\ instead of a full export.

Before you wipe a distro, copy any DOCX, XLSX, PPTX, or PDF files you still need out of Linux home folders into a Windows path you control. After uninstall, those Linux paths are gone—office files should already live on the Windows side if you still need to edit them.

Optional: compact or locate large VHDX usage after shutdown if disk pressure is why you are uninstalling—but never delete VHDX files by hand while a distro is still registered. Prefer official unregister so Windows cleans registration metadata too.

Unregister Every Linux Distribution

List exact names first. Names are case-sensitive enough to mistype—copy from the list output:

wsl -l -v
wsl --shutdown
wsl --unregister Ubuntu
# repeat for Debian, Arch, etc.
wsl -l -v

After each unregister, the name should disappear from wsl -l. If a distro is stuck “Running,” shut WSL down first. Do not skip the list step—community threads are full of people who unregistered the wrong name because they guessed Ubuntu-20.04 vs Ubuntu.

Removing Ubuntu on WSL or Arch on WSL this way is the same command pattern; only the distribution name changes. If the list is already empty, you may be looking at no installed distributions rather than an uninstall problem—confirm before disabling features.

Uninstall the Distro Apps from Windows

Ask Ubuntu answers note that Start Menu → Uninstall on the Ubuntu app is the familiar GUI path. After unregister, also remove leftover apps:

  1. Open Settings → Apps → Installed apps (Windows 11) or Apps & features (Windows 10).

  2. Search for Ubuntu, Debian, openSUSE, Arch, or other distro names you installed.

  3. Uninstall each Linux distribution app.

GUI uninstall alone sometimes left the distro registered historically—that is why unregister remains the reliable cleanup. Doing both (unregister + app uninstall) matches how careful users finish the job.

Remove the WSL App Package (Optional Completeness)

Modern Windows may ship WSL as a Store/system component. On some builds you can remove the package from an elevated PowerShell session:

Get-AppxPackage *WindowsSubsystemForLinux* | Format-List Name, PackageFullName
Get-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux | Remove-AppxPackage

If Get-AppxPackage returns nothing, your WSL may be inbox/optional-feature based—continue with feature disable below. Do not invent package names; use what your system lists. After removal, reboot before judging success.

Disable Windows Features for a Full Removal

To stop WSL from being available as a platform feature:

  1. Press Start, search Turn Windows features on or off.

  2. Clear Windows Subsystem for Linux.

  3. Clear Virtual Machine Platform if you do not need it for other tools (Hyper-V workloads may depend on related virtualization features—know your machine’s other uses).

  4. OK → reboot when prompted.

PowerShell alternative (Administrator), feature names as exposed on your build:

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
# Only if you intentionally remove VMP too:
Disable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform

Disabling features without unregistering first is the wrong order for data hygiene: unregister (and back up) while wsl still works, then disable features. Community “clean reinstall” write-ups follow the same sequence: destroy distros → remove apps → untick features → reboot.

Verify Removal and Reclaim Space

wsl -l -v
wsl --status
Get-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Expectations after a full uninstall:

  • wsl -l -v errors or shows no distributions.

  • No Ubuntu/Debian/Arch entries under Installed apps.

  • Optional feature state shows Disabled after reboot.

  • Disk space returns after unregister (VHDX data gone)—File Explorer “empty recycle bin” myths do not replace unregister.

WSL Linux GUI / WSLg pieces go away with the platform; you do not uninstall GUI support as a separate product once distros and WSL are removed.

Common Failures

  • Unregister says invalid distribution name: re-run wsl -l -v and copy the exact name.

  • Settings uninstall left distro listed: run wsl --unregister—this is the Ask Ubuntu pattern that fixed stubborn Ubuntu leftovers.

  • Access denied: use an elevated terminal for feature disable / some package removals.

  • Still see WSL after reboot: confirm both distro apps and optional features; some Store WSL packages need the Appx removal step.

  • Need WSL again: reinstall with the install guide, then add Ubuntu or Arch.

wsl --shutdown
wsl -l --all
# then unregister exact names again

When You Should Not Fully Uninstall

If Docker Desktop, Android emulation, or other tools depend on Virtual Machine Platform, clearing every virtualization-related box can break those workflows. Prefer unregistering unused Linux distros and leaving the platform enabled when you only need disk space from Ubuntu’s VHDX.

If your real problem is “WSL has no installed distributions,” uninstalling the platform is usually the wrong fix—install a distro instead via the empty-distro troubleshooting guide or install WSL.

Corporate images may re-enable features through policy. If WSL returns after every reboot, check with IT before fighting Group Policy with manual toggles.

Related guides while you clean up or rebuild: WSL overview, install WSL, Ubuntu on WSL, Arch on WSL, WSL GUI, and no installed distributions.

Practice the mental model: list → backup → unregister → remove apps → disable features → reboot → verify. Skipping backup is how semester projects disappear. Skipping unregister is how “I uninstalled Ubuntu” still shows a distro in wsl -l.

On shared family PCs, say out loud which distro name you are unregistering. One extra second of confirmation beats restoring from an incomplete export. Keep exports on a different physical disk when the uninstall is motivated by a failing system drive.

After a clean removal, Windows itself is unchanged for everyday browsing and office work. You only removed the Linux compatibility layer and its virtual disks. That clarity helps non-technical stakeholders who hear “uninstall Linux” and fear wiping Windows.

If you plan to reinstall immediately for a clean slate (common after broken upgrades), finish verification first so the new install does not collide with half-disabled features. Reboot once between full uninstall and full reinstall when the machine behaved oddly.

Document what you removed in a short note: distro names, whether VMP was disabled, and where backups live. Future you—or a teammate—will need that when something still references \\wsl$\ paths in scripts.

Finally, treat Microsoft’s wording as authoritative for data loss: unregister deletes the distro’s data. Blog posts that call unregister “just detach” are wrong. Read Microsoft’s WSL FAQ uninstall notes if you need the official one-line confirmation before you press Enter.

Uninstalling Windows Subsystem for Linux is straightforward when you separate distro deletion from platform disable—and dangerous when you reverse the warnings. Move carefully, verify twice, and only then reclaim the disk space you came for.

Before You Unregister: Save Office Files Outside the Distro

wsl --unregister permanently deletes that distro’s Linux filesystem. Any DOCX, XLSX, PPTX, or PDF still sitting only under your Linux home folder will disappear with it.

WPS Office on Windows is the practical place to keep those files after you copy them out: Writer, Spreadsheet, Presentation, and PDF tools with familiar Office formats.

WPS Office Writer on Windows editing WSL setup notes in a DOCX document
WPS Writer on Windows: keep WSL setup notes, command snippets, and handoff checklists in a DOCX teammates can open.
What you need nextWhat WPS gives you
Move important documents to Windows before wiping a distroStrong .docx / .xlsx / .pptx layout fidelity when files move between Windows, Linux, and macOS
One place for notes, sheets, slides, and PDFsFree core suite: Writer, Spreadsheet, Presentation, plus PDF view/edit/convert tools
A familiar desktop UIRibbon-style apps that feel close to everyday Office workflows
A trusted install pathOfficial Windows installer from wps.com, with Free Download available on this page

Copy critical office files to a Windows path you control, open them in WPS from the official WPS Office download, then unregister only after you confirm the copies open correctly.

FAQ

Does wsl --unregister delete my files?

Yes. Microsoft documents that unregistering permanently removes the distribution’s data, settings, and software. Export or copy files out first.

Is uninstalling the Ubuntu app enough?

Not always. Ask Ubuntu users often still needed wsl --unregister when the distro remained listed. Do both for a clean removal.

How do I remove WSL completely?

Unregister all distros, uninstall distro apps, remove the WSL package if present, disable Windows Subsystem for Linux (and VMP if appropriate), then reboot and verify.

Will this delete my Windows files?

No—unregister targets the Linux distro filesystem managed by WSL, not your normal C:\Users Windows profile. Still, never delete unknown folders under AppData without a guide.

Can I reinstall later?

Yes. Follow how to install Windows Subsystem for Linux, then install Ubuntu or another distro.

Should I disable Virtual Machine Platform?

Only if nothing else on the PC needs it. If unsure, unregister distros and disable just Windows Subsystem for Linux first.

What if wsl -l is already empty?

You may only need to disable features or install a distro—not unregister. See no installed distributions if you still wanted Linux.

Remove distributions with unregister when you intend permanent deletion; finish with app removal and feature disable only when you want WSL gone from the machine. That ordered path matches Microsoft’s commands and the fixes Ask Ubuntu users actually marked as working.

Free Office Download

WPS Writer
WPS Presentation
WPS Spreadsheet
WPS PDF
  • Use Word, Excel, and PPT for FREE, No Ads.

  • Edit PDF files with the powerful PDF toolkit.

  • Microsoft-like interface. Easy to learn. 100% Compatibility.

  • Boost your productivity with WPS's abundant free Word, Excel, PPT, and CV templates.

100% secure
Algirdas Jasaitis

15 years of office industry experience, tech lover and copywriter. Follow me for product reviews, comparisons, and recommendations for new apps and software.