Wipe all WiFi settings from MacBook
IIRC, there is a pretty simple way to do this! The first set of instructions in this link explains it pretty well, but in case the link breaks, here is the text from the site. The idea is to delete the network configuration related plist files.


  
  Turn off Wi-Fi from the menu bar.
  Navigate to /Library/Preferences/SystemConfiguration/ in Finder by pressing ⌘ + Shift + G.
  Select the following files:
  
  
  com.apple.airport.preferences.plist
  com.apple.network.identification.plist
  com.apple.wifi.message-tracer.plist
  NetworkInterfaces.plist
  preferences.plist
  
  Copy these files in a safe location so that if anything gets messed up, you can easily restore them.
  Delete the files (from the original location).
  Reboot your Mac and enable Wi-Fi again.
  


Let me know how this goes!

Via the command line:

cd /Library/Preferences/SystemConfiguration/
sudo zip backup.zip \
         com.apple.airport.preferences.plist       \
         com.apple.network.identification.plist    \
         com.apple.wifi.message-tracer.plist       \
         NetworkInterfaces.plist preferences.plist
sudo rm  com.apple.airport.preferences.plist       \
         com.apple.network.identification.plist    \
         com.apple.wifi.message-tracer.plist       \
         NetworkInterfaces.plist preferences.plist


Note: In macOS Mojave 10.14.4, the file com.apple.network.identification.plist didn't exist on atleast 1 machine where this was tested. The file not found errors can be ignored.