1

I have several dozens of non-existent network services that appear in the network panel in System Preferences.

I have generated a list of network services with:

networksetup -listallnetworkservices

## output:
# "Ethernet Adaptor (en12)"
# "Ethernet Adaptor (en13)"
# ...
# "Ethernet Adaptor (en156)"

Now trying to delete a service with e.g.

networksetup -removenetworkservice "Ethernet Adaptor (en156)"

results in the following output:

You cannot remove Ethernet Adaptor (en156) because there aren't any other network services on Ethernet Adaptor (en156).
** Error: The parameters were not valid.

Selecting a service in the Network applet and deleting it by clicking the button works fine.

Can this be done from the command line?

2
  • Does the presence of these interfaces cause any functional networking problem using your Mac? I admit, there are a lot of superfluous adaptors listed here and it is primarily an aesthetic concern. Do you use an Ethernet Adaptor, and if so, what brand? Perhaps the adaptor itself is not Apple-compatible, and is causing this 'stacking up' of adaptors in the list.
    – IconDaemon
    Commented Jan 21, 2022 at 15:27
  • Sometimes the Ethernet adapter won't be detected after waking up and needs to be unplugged and plugged in again, but otherwise works reliably. Used with two different adapters, a UGreen ethernet-USB-C (detected as AX88179A) and another one TP-Link UE300 (USB-C).
    – ccpizza
    Commented Jan 22, 2022 at 14:11

1 Answer 1

4

I believe you are looking for:

networksetup -deletepppoeservice "Ethernet Adaptor (en156)"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .