Open the Windows terminal and run the following command:
wsl --unregister Ubuntu
It will remove the Ubuntu bash shell from Windows 10. If you have created a shortcut icon for the Ubuntu bash shell, you need to delete it manually.
To find all installed Linux distributions and their names on your Windows system, run the following command on the terminal: