network.go
func (v *VM) RemoveAllNetworkAdapters() error {
	vmxPath, err := v.VmxPath()
	if err != nil {
		return err
	}

	vmx, err := readVmx(vmxPath)
	if err != nil {
		return err
	}

	for key := range vmx {
		if strings.HasPrefix(key, "ethernet") {
			delete(vmx, key)
		}
	}

	return writeVmx(vmxPath, vmx)
}
func (v *VM) RemoveAllNetworkAdapters() error {
	vmxPath, err := v.VmxPath()
	if err != nil {
		return err
	}

	vmx, err := readVmx(vmxPath)
	if err != nil {
		return err
	}

	for key := range vmx {
		if strings.HasPrefix(key, "ethernet") {
			delete(vmx, key)
		}
	}

	return writeVmx(vmxPath, vmx)
}
// RemoveAllNetworkAdapters deletes all network adapters from a VM.