Posted on 05-30-2017 07:02 AM
I've seen some discussions already dotted around but not much has helped so far.
We have successfully used a script that will remove the SSID from a Mac but after a reboot, you are still left with the SSID details in Keychain.
Is there a way (script?) to remove this? I want to test it using terminal first.
Solved! Go to Solution.
Posted on 05-30-2017 07:32 AM
For WPA2 Enterprise networks, this has worked for us:
su "$loggedInUser" -c '/usr/bin/security delete-generic-password -s com.apple.network.eap.user.item.wlan.ssid.<SSID NAME>'
I'm using it in this script.
Someone might be able to chime in on the name of the keychain item for a standard WPA/WPA2 SSID, which you can just replace the com.apple.network.eap.user.item.wlan.ssid.<SSID NAME>
portion with.
Posted on 05-30-2017 07:32 AM
For WPA2 Enterprise networks, this has worked for us:
su "$loggedInUser" -c '/usr/bin/security delete-generic-password -s com.apple.network.eap.user.item.wlan.ssid.<SSID NAME>'
I'm using it in this script.
Someone might be able to chime in on the name of the keychain item for a standard WPA/WPA2 SSID, which you can just replace the com.apple.network.eap.user.item.wlan.ssid.<SSID NAME>
portion with.
Posted on 09-17-2018 10:38 PM
wpa2 system based conenction
sudo security delete-generic-password -l "SSIDNAME" "/Library/Keychains/System.keychain"
Posted on 09-17-2018 10:57 PM
Dont ask me how to delete ones synced to iCloud though. @geoffrepoli