How to remove all the vEthernet (Default Switch) once and for all?

I just found out that I could easily remove all the vEthernet switches by simply going to:

"Control Panel" > "Programs" > "Programs and Features" > "Turn Windows features on or off" on your Windows 10 machine Find the name of the feature/s you would like to disable--in this case, "Containers" and (optionally) "Hyper-V"

enter image description here

Which is stated in this article https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/configure-docker-daemon


Just go to device manager, network adapters, right click and uninstall


I have 160 of these devices, and I don't feel like uninstalling them all by hand.

I've used the; https://gallery.technet.microsoft.com/Device-Management-7fad2388 to disable them like so;

get-device | Where-Object -Property Name -Like hyper-v* | disable-device

But that's only a disable;

(Get-WmiObject Win32_Networkadapter | Where-Object -Property Name -Like hyper-v*).delete()

This gets an error message...