Все способы:
- Удаление дистрибутивов Linux
- Шаг 1: Отмена установки дистрибутивов Linux в WSL
- Шаг 2: Деинсталляция приложений
- Удаление связанных с WSA компонентов Win 11
- Вариант 1: «Компоненты Windows»
- Вариант 2: Консоль
- Вопросы и ответы: 0
Удаление дистрибутивов Linux
Первым шагом на пути отказа от использования «Подсистемы Windows для Linux» в среде ОС от Microsoft, в том числе одиннадцатой версии, должна стать деинсталляция развёрнутых на ПК дистрибутивов UNIX-систем. Полное удаление любого адаптированного для функционирования через WSA дистрибутива Линукс выполняется в два этапа, и далее продемонстрировано, как это сделать относительно всех последних без исключения.
Шаг 1: Отмена установки дистрибутивов Linux в WSL
Сначала удаляем созданные Linux в подсистеме Windows 11 данные, созданную первой файловую систему, а также отменяем регистрацию всех Linux-дистрибутивов в WSL. Фактически всё это осуществляется путём запуска единственной консольной команды.
- Обязательно с повышенными привилегиями («от имени Администратора») открываем «Терминал» либо классическую «Командную строку» Windows 11. (Первое выполнимо, к примеру, из контекстного меню элемента «Пуск» на «Панели задач» операционки,
а второе проще всего реализовать средствами системного «Поиска».)
Читайте также:
Как открыть приложение «Терминал» в Windows 11
Запуск «Командной строки» от имени Администратора в Windows 11 - Сначала определяем, какие (и сколько) дистрибутивы Linux установлены в подсистеме WSL, а также выясняем их точные имена. С такой целью отправляем на выполнение команду:
wsl -l -v
- Чтобы деинсталлировать отдельный дистрибутив Linux из «Подсистемы Виндовс для Линукс», вводим в консоль следующее указание:
wsl --unregister ИМЯ_ДИСТРИБУТИВА
(
ИМЯ_ДИСТРИБУТИВА
заменяем на точное значение такового в полученном по результату выполнения предыдущего пункта этой инструкции перечня) - Нажав «Enter» на клавиатуре, отправляем введённую команду на выполнение, после чего дожидаемся завершения процедуры «Отмена регистрации» – в консоли появится оповещение «Операция успешно завершена».
- Повторяем процедуру отмены регистрации и удаления данных относительно всех других добавленных в подсистему дистрибутивов Линукс.
- Чтобы убедиться в том, что все дистрибутивы исключены из «Подсистемы Windows для Linux», по завершении выполнения вышеуказанного повторно запускаем команду
wsl -l -v
.
Рассмотренная выше операция очистит WSL непосредственно от данных Линукс-дистрибутивов, однако их инсталляционные пакеты останутся на компьютере (и будут доступны для развёртывания, к примеру, путём обычного открытия из «Главного меню» Windows 11), продолжат занимать место на диске, и в целом отображаться в интерфейсе ОС от Microsoft как установленные, поэтому не стоит игнорировать выполнение следующего пункта настоящих рекомендаций.
Шаг 2: Деинсталляция приложений
С целью полного избавления от следов всех ранее эксплуатируемых вариантов Линукс в Виндовс 11 необходимо деинсталлировать приложения дистрибутивов, через которые они и были интегрированы в «Подсистему Виндовс для Линукс». Это выполняется точно так же, как удаление любого полученного из Майкрософт Стор софта, а практически реализуется минимум двухвариантно.
Читайте также: Удаление встроенных и полученных из Microsoft Store приложений в Windows 11
Вариант 1: «Параметры»
- Открываем (к примеру, нажав «Win»+«X» или вызвав соответствующий пункт из меню дополнительных функций кнопки «Пуск» на «Панели задач») «Параметры» Windows 11.
- Из меню слева окна «Параметров» ОС переходим в раздел «Приложения», затем открываем «Установленные приложения».
- Находим блок с наименованием деинсталлируемого дистрибутива Линукс в перечне доступного в Виндовс 11 софта,
кликаем по расположенным в его правой части трём точкам,
выбираем «Удалить» в отобразившемся меню.
- Подтверждаем свои намерения, кликнув «Удалить» в следующем меню,
затем ожидаем завершения деинсталляции софта.
- Повторяем выполнение шагов №№3-4 выше относительно всех дистрибутивов Linux, которые обнаруживаются в перечне инсталлированных в Виндовс 11 приложений.
Вариант 2: Диспетчер пакетов Windows
Те, кто для решения различных задач в Windows предпочитают использовать консоль, могут выполнить удаление приложений Linux при помощи программы командной строки «Диспетчер пакетов» («winget»). Один из возможных алгоритмов реализации такого подхода:
- От имени Администратора открываем «Терминал» (в примере далее) или классическую «Командную строку» Виндовс.
- Отправляем на выполнение команду вывода списка установленных в операционке приложений:
winget list
Немного ожидаем, пока перечень софта будет сформирован и представлен в виде ответа консоли.
- В столбце «Имя» находим наименование удаляемого из системы приложения-дистрибутива Linux, запоминаем его. (Возможно, удобнее и проще будет скопировать Имя в буфер обмена – выделяем текстовое значение параметра мышкой, нажимаем «Ctrl»+«C» на клавиатуре ПК.)
- Вводим команду удаления приложения-дистрибутива Линукс из системы, её синтаксис следующий (ИМЯ_ДИСТРИБУТИВА_LINUX заменяем на полученное на шаге выше значение «Имя», вставка данных в консоль выполнима путём нажатия клавиатурной комбинации «Ctrl»+«V»):
Get-AppxPackage *ИМЯ_ДИСТРИБУТИВА_LINUX* | Remove-AppxPackage
Нажимаем «Ввод» на клавиатуре, чтобы запустить выполнение указания, ожидаем окончания инициированной операции – в консоли отобразиться приглашение к вводу следующих команд.
- Повторяем процедуру деинсталляции относительно всех демонстрируемых перечнем-ответом на команду
winget list
дистрибутивов Linux.
Удаление связанных с WSA компонентов Win 11
По сути, после деинсталляции всех дистрибутивов Линукс по предложенным выше инструкциям каких-либо видимых признаков присутствия WSA в Windows 11 не останется, и если есть вероятность, что подсистема потребуется когда-нибудь в будущем, далее можно ничего не предпринимать. Если же целью является действительно полное удаление «Подсистемы Windows для Linux» из состава ОС, выполняем одну из двух следующих инструкций.
Вариант 1: «Компоненты Windows»
Вероятно, наиболее привычный и удобный с точки зрения пользователей Windows метод включения и удаления необязательных компонентов операционки, включая WSA, подразумевает эксплуатацию специализированного элемента «Панели управления».
Читайте также: Включение или отключение компонентов Windows 11
- Открываем окно «Панели управления» «Компоненты Windows». Это выполнимо различными путями, далее один из них:
- Вызываем (из контекстного меню кнопки «Пуск» на «Панели задач» или нажав «Win» + «R» на клавиатуре) системную оснастку «Выполнить».
- Вводим в поле «Открыть» отобразившегося окошка следующую команду, после чего кликаем «ОК» или нажимаем «Ввод» на клавиатуре:
OptionalFeatures
В результате откроется требуемый в нашем случае инструментарий:
- Прокручиваем список записей в окне «Компоненты Windows»,
снимаем галочку с чекбокса слева пункта «Подсистема Windows для Linux».
- При желании (когда не требуется для функционирования другого, отличного от WSA софта) можно удалить также «Платформу для виртуальной машины» — убираем отметку с обозначающего её чекбокса.
- Кликаем «ОК» в окошке включения/выключения компонентов операционки,
после чего ожидаем, пока система выполнит подразумевающие удаление выбранных объектов манипуляции в автоматическом режиме.
- Щёлкаем «Перезагрузить сейчас» в окне с оповещением «Windows применила требуемые изменения»,
ждём, пока завершится перезапуск ПК и
осуществляемое в этом процессе окончательное удаление «Подсистемы Windows для Linux» из Windows 11.
Вариант 2: Консоль
Второй вариант действий по удалению компонента «Подсистема Виндовс для Линукс» и (при необходимости) «Платформы виртуальной машины» из Windows 11 подразумевает использование средств программы командной строки для изменения образов ОС от Microsoft под названием DISM.
- Открываем (обязательно, с правами Администратора) «Терминал» или «Командную строку».
- Для начала можно проверить факт включённости «Подсистемы Windows для Linux» в Win 11, — с такой целью при помощи следующей команды запрашиваем список всех компонентов ОС:
Dism /online /Get-Features
Прокручиваем полученный в консоли перечень, находим в нём запись «Microsoft-Windows-Subsystem-Linux», убеждаемся, что «Состояние» компонента «Включён», и затем переходим к выполнению следующего пункта этой инструкции.
- Пишем в консоли (или копируем из текста этой статьи и затем вставляем в окно «Терминала»/«Командной строки») такое указание:
Dism /online /Disable-Feature /featurename:Microsoft-Windows-Subsystem-Linux /Remove /norestart
- Нажимаем «Enter», ожидаем
завершения удаления компонента WSA из системы.
- При необходимости и действуя по аналогии с компонентом WSA «выключаем» через консоль «Платформу виртуальной машины», — команда будет следующей:
Dism /online /Disable-Feature /featurename:VirtualMachinePlatform /Remove /norestart
- Завершив запуск деактивирующих компоненты Win 11 непосредственно команд, перезапускаем компьютер. С этой целью, к примеру, через «Терминал» можно отправить на выполнение следующее указание:
Restart-Computer
Читайте также: Как перезагрузить компьютер под управлением Windows 11
- После перезапуска ПК и проведения в этом процессе системой автоматически манипуляций
полное удаление «Подсистемы Windows для Linux» из Windows 11 следует считать завершённым.
Наша группа в TelegramПолезные советы и помощь
-
Home
-
News
- How to Uninstall WSL on Windows 11 & Windows 10? See a Guide!
How to Uninstall WSL on Windows 11 & Windows 10? See a Guide!
By Vera | Follow |
Last Updated
If you need to uninstall Windows Subsystem for Linux, you can do this task on Windows 10/11. It is not simple as program uninstallation. Refer to this post from MiniTool and find the guide on how to uninstall WSL easily.
About WSL
Windows Subsystem for Linux, also known as WSL, is a feature in Windows operating system that is primarily designed for developers, especially web developers. WSL enables you to run a Linux system with Linux command-line tools and GUI apps on Windows 11/10. This won’t break anything important on your PC.
In the earlier time, Microsoft released the first version – Windows Subsystem for Linux (WSL) that supports a direct translation between Linux and Windows. While WSL2 uses a lightweight virtual machine to integrate it into your Windows workflow. Any Linux distribution can run on either the WSL 1 or WSL 2 architecture, which depends on their configuration.
To run a Linux system on Windows 10/11, you need to install WSL and here a related post is helpful – How to Install Windows Subsystem for Linux (WSL) on Windows 11.
When anything goes wrong or you no longer need to use this platform, you may want to uninstall WSL. Well then, can you uninstall WSL from your computer? It is possible and just follow the guide below now.
Tips:
Experience a faster system with MiniTool System Booster – your solution to effortless program uninstallation.
MiniTool System Booster TrialClick to Download100%Clean & Safe
How to Uninstall WSL on Windows 10/11
How to uninstall WSL on Windows 11/10? It is not easy to completely remove WSL from your PC since this isn’t similar to uninstalling a program. You need to do three steps – delete the Linux distro, uninstall other components and disable this platform. Do the operations about WSL uninstall Ubuntu in order:
Step 1: Uninstall Linux Distro
1. In Windows 11/10, press Win + I at the same time to open Settings.
2. Go to Apps > Apps & features.
3. Choose a Linux distribution like Ubuntu and click Uninstall (Windows 10). For Windows 11, click the three dots and click Uninstall. Then, click Uninstall again to confirm the operation.
Tips:
You can type the Linux distribution like Ubuntu into the text of App list to find your installation.
Step 2: Delete Windows Subsystem for Linux Components
After uninstalling the Linux distribution from Windows 11/10, other elements of the Windows Subsystem for Linux functionality should be also removed.
1. In the Settings window, go to App > Apps & features.
2. Choose Windows Subsystem for Linux WSLg Preview and click Uninstall > Uninstall. In Windows 11, you need to click three dots and click Uninstall.
3. Find Windows Subsystem for Linux Update and uninstall it.
Step 3: Disable Windows Subsystem for Linux
This is the last step you should do and see what you should do:
1. In Windows 11/10, click System > Optional features and click More Windows features under the Related settings section to open Windows Features.
Tips:
Alternatively, you can type windows features into the search box and click Turn Windows features on or off.
2. In the Windows Features interface, locate Virtual Machine Platform and Windows Subsystem for Linux, then uncheck the boxes of these two options.
3. Click OK to save the changes and restart your computer.
After the restart, you completely uninstall WSL on Windows 11/10. If you change your mind and want to run a Linux distribution like Ubuntu, you can still reinstall WSL on your computer.
About The Author
Position: Columnist
Vera is an editor of the MiniTool Team since 2016 who has more than 7 years’ writing experiences in the field of technical articles. Her articles mainly focus on disk & partition management, PC data recovery, video conversion, as well as PC backup & restore, helping users to solve some errors and issues when using their computers. In her spare times, she likes shopping, playing games and reading some articles.
Для того, чтобы удалить WSL переходим в «Параметры» Windows 11, нажав горячие клавиши «Win+I». В окне параметров в левой части меню щелкаем по пункту «Приложения», а затем по плитке «Приложения и возможности».
Удаляем «Ubuntu», «Windows Subsystem for Linux Update» и «Windows Subsystem for Linux WSLg Preview» — напротив каждого удаляемого элемента нажимаем на кнопку с тремя точками и во всплывающем меню выбираем «Удалить».
Затем переходим в «Панель управления» — воспользуемся поиском Windows 11, в поисковой строке набираем запрос «Панель управления» и щелкаем по найденному приложению в разделе «Лучшее соответствие».
В окне панели управления щелкаем по ссылке «Удаление программы».
Затем щелкаем по «Включение или отключение компонентов Windows» в правой части окна «Программы и компоненты».
В окне «Компоненты Windows» снимаем галочку с «Подсистема Windows для Linux» и нажимаем кнопку «ОК».
Для завершения удаления нажимаем кнопку «Перезагрузить компьютер».
После перезагрузки WSL будет удалена с нашего ПК.
Windows 11 offer users a nifty feature Windows Subsystem for Linux (WSL) that allows users to run a Linux file system accompanied by Linux based GUI apps and command line tools within Windows. WLS is useful handy for developers who need both platforms.
In case, you’ve install Windows Subsystem for Linux on your Windows 11 PC and now want to remove it, then you can’t just uninstall it just like you uninstall other apps installed on your device.
It is possible that Windows Subsystem for Linux (WSL) is not working properly on Windows 11 or you want to reset WSL or there might be other reasons for doing this.
The process is complicated and to achieve this you have to follow different steps like removing the Linux distros, additional components, and then disable the platform to uninstall WSL on Windows 11.
In this blog post, we’re going to share step by step instructions on how to uninstall Windows Subsystem for Linux on Windows 11. Let’s start with first step:
Step 1: Uninstall Linux distros
Open Windows 11 settings with Window + I and then go to Apps.
Click on Apps & features on the right sidebar.
From the list of apps, you need to head over to Linux Distro, For example Ubuntu and other
Click on the three dot icon and choose Uninstall to remove Ubuntu distro. You can follow the same steps to remove other installed distros.
Step 2: Remove Linux Subsystem
Now you have to uninstall Windows subsystem apps. To do this, follow these steps:
Open Settings and then go Apps.
Click on Apps & features.
In the app list option, search for “linux”.
Click on the three dot icon and then click on Uninstall to remove Windows subsystem for linux update and WSLg Preview.
Step 3: Disable WSL
The last step is to disable Windows Subsystem for Linux feature on Windows 11.
Open Windows 11 settings and then go to Apps.
On the right side, scroll down and select Optional features.
In the Optional features, scroll down and find more Windows features. This will open Windows features.
Here you have to uncheck the option for Windows Subsystem for Linux. Wait for few seconds.
Once done, click on OK to save settings and restart your computer.
If you made up to this blog post, then it confirms that you have successfully removed Windows Subsystem for Linux from your Windows 11 PC.
Don’t worry, you can reinstall Windows Subsystem for Linux in Windows 11.
Viney Dhiman, the mind behind GeekerMag, is a seasoned content writer with over 12 years of experience. Specializing in simplifying complex tech concepts, he covers Windows OS, Android, iOS, web apps, and product reviews. His work can be found on popular tech websites like Gizmodo and The Verge, and he has been interviewed by the Microsoft Edge team.
- To uninstall WSL on Windows 11, open Settings > Apps > Installed apps and remove the Linux distros and “Windows Subsystem for Linux” components. Finally, open Settings > System > Optional features > More Windows Features and remove the WSL and virtual machine components.
UPDATED 1/27/2025: On Windows 11, it’s possible to uninstall the Windows Subsystem for Linux (WSL), but it requires multiple (in-order) steps. Although Microsoft has streamlined the installation with a single command or using the Microsoft Store, removing the platform is not as simple as clicking an “Uninstall” button.
If you want to uninstall WSL from your computer completely, you must remove the Linux distros, uninstall additional components, and disable the platform components.
Although the ability to run Linux on Windows 11 is a useful feature for developers and users who need access to both platforms, there might come a time when you no longer need the platform or may need to reset it to fix problems. Whatever the reason, you can permanently remove WSL by uninstalling all the components in order.
In this guide, I will teach you the steps to remove the Windows Subsystem for the Linux platform from Windows 11.
Completely uninstall WSL from Windows 11
To uninstall the Windows Subsystem for Linux from Windows 11, you first want to remove the distros, platform components, and the remaining operating system features.
1. Remove Linux distros
To uninstall a distro of Linux from WSL on Windows 11, use these steps:
-
Open Settings on Windows 11.
-
Click on Apps.
-
Click the Installed apps page.
-
Select the Linux distribution.
-
Click the menu (three-dotted) button on the right and the Uninstall option.
-
Click the Uninstall option again.
Once you complete the steps, repeat the instructions to remove any remaining distro as necessary.
2. Remove Windows Subsystem for Linux components
To uninstall the WSL Linux kernel and GUI components on Windows 11, use these steps:
-
Open Start.
-
Search for PowerShell, right-click the top result, and click the Run as administrator option.
-
Type the following command to view all the installed apps and press Enter:
Get-AppxPackage MicrosoftCorporationII.WindowsSubsystemForLinux | Remove-AppxPackage
After you complete the steps, you can uninstall the platform from Windows 11.
In the past, Windows 11 offered an option on Settings > Apps > Installed apps to remove the “Windows Subsystem for Linux” component, but then, it was relocated to Settings > System > System Components. However, in this location, the component no longer includes the option to uninstall. As a result, the alternative is to remove the WSL component with PowerShell.
3. Remove WSL from Windows 11
To uninstall the Windows Subsystem for Linux components from Windows 11, use these steps:
-
Open Settings.
-
Click on System.
-
Click the Optional features page.
-
Click the “More Windows features” option under the “Related settings” section.
-
Clear the “Virtual Machine Platform” option.
-
Clear the “Windows Subsystem for Linux” option.
-
Click the OK button to uninstall the features.
-
Click the Restart now button.
Once you complete the steps, the Windows Subsystem for Linux will be completely removed from Windows 11.
You can also follow these instructions in my video tutorial on my YouTube channel. (Remember to like and subscribe.)
If, after uninstalling the platform, the Linux entry remains on File Explorer, you can use these instructions to remove the entry with Registry.
Update January 27, 2025: This guide has been updated to ensure accuracy and reflect changes to the process.