Remove user wireless profile from 10.9

jim269
New Contributor

Hey guys, what would be the best practice to remove a wireless profile from a MBA and remove the wireless config in the network settings?

1 REPLY 1

tron_jones
Release Candidate Programs Tester

If the profile is from JSS take it out of the scope. If you made your wireless profile with config in it, it should wipe out the network settings when it's removed.

Otherwise you can use the "profiles' command from terminal to manually remove profiles.

To manually remove network settings you could use the networksetup -removepreferredwirelessnetwork <device name> <network name>.
The device name on a MBA should be en0.

AirPort="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport"
#Disconnect from network
$AirPort -z
networksetup -removepreferredwirelessnetwork <device name> <network name>

If doing this remotely I would send out the new Wireless Config Profile first then remove the old one.