Skip to content

Instantly share code, notes, and snippets.

@simonemarra
Created January 25, 2022 15:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonemarra/8f846b0627cb7298867e0eed6919f9f9 to your computer and use it in GitHub Desktop.
Save simonemarra/8f846b0627cb7298867e0eed6919f9f9 to your computer and use it in GitHub Desktop.
MACOS | delete network services from terminal

$ networksetup -listallnetworkservices | grep STARTING-NETWORK-NAME | sed s/*// | while read -r service; do networksetup -deletepppoeservice $service; done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment