Forget Wi-Fi network on MacBook It may be needed in a variety of situations: from a simple password change on a router to resolving connection issues when a device stubbornly clings to an old access point with an authentication error. Unlike Windows or Android, where deleting a network takes a couple of clicks, macOS hides this feature in obscure menus. — and in some cases requires working with the terminal or even resetting the system settings.
In this article you will find 5 proven methods delete saved Wi-Fi network on any MacBook (including models on M1, M2 And Intel), and we'll also figure out why the network sometimes "comes back" after deletion and how to fix it. We'll pay special attention hidden networks that are not displayed in the standard list but continue to interfere with the connectionIf you encounter the "Incorrect Password" error even though the key is 100% correct, or macOS stubbornly ignores the new access point, you'll find the solution here.
1. Standard method: deleting the network through System Preferences
The most obvious and safest method is to use the graphical interface macOSIt's suitable for most users and doesn't require any technical skills. Here's how it works:
- Open System Preferences (gear icon in
Dockor via Apple menu → "System Preferences"). - Go to the section
Net(V macOS Ventura and newer it can be calledNetworks). - In the left column, select
Wi-Fi, then press the buttonAdditionally...in the lower right corner. - A window with a list will open. famous networksFind the desired network, select it and press the button
–(minus) below the list. - Confirm deletion by pressing the button
Deleteand save the changes usingOK.
⚠️ Attention: If the button – inactive (grayed out), this means that the network is currently active. Disconnect from her via the Wi-Fi menu in the status bar (click on the antenna icon and select "Disconnect from [network name]").
Is your connection to this network currently disabled?
Do you have a backup copy of your password (in case you need to connect again)|
Is this network used in VPN profiles or corporate settings?
Have you verified administrator rights (if the MacBook is on a company domain)?
This method works for visible networks, but it won't help remove it hidden SSIDs (those that don't broadcast their name). These will require alternative methods, described below.
2. Removing via Terminal: for hidden networks and advanced users
If the network is not visible in the GUI (for example, it is hidden SSID or profile Enterprise Wi-Fi), will have to be used TerminalThis method is also useful if macOS stubbornly "remembers" the network after a standard deletion.
Open Terminal (through Spotlight - click Cmd + Space and enter "Terminal"). Enter the following command to view all saved networks:
security find-generic-password -wa "network_name"
Replace network_name on real SSIDIf the network name contains spaces, enclose it in quotation marks: My Wi-Fi.
To delete the network completely, execute:
sudo networksetup -removepreferredwirelessnetwork en0 "network_name"
Here en0 — this is the Wi-Fi interface identifier (in 99% of cases it is like this, but if the command did not work, check it through networksetup -listallhardwareports). After entering the command, you will be asked to enter the administrator password (the characters will not appear as you type - this is normal).
3. Reset NVRAM/PRAM: When the network "comes back" after deletion
Sometimes users face a paradoxical situation: the network is removed through the settings, but MacBook still tries to connect to it. The reason for this is - NVRAM cache (or PRAM (In older models), where some network settings are stored. Resetting this memory helps in 80% of such cases.
Here's how to do it:
- Turn it off MacBook.
- Turn it on and immediately hold down the keys
Option (⌥) + Command (⌘) + P + R. - Keep them close 20 seconds (on Mac with Apple Silicon — until the second beep or the logo appears).
- Release the keys and wait until it boots up normally.
⚠️ Attention: Resetting NVRAM will also reset other settings such as sound volume, screen resolution And selecting a boot diskThey will have to be reconfigured.
What is NVRAM and why does it affect Wi-Fi?
NVRAM (Non-Volatile Random-Access Memory) is non-volatile memory where macOS stores low-level settings, including network parameters. Sometimes, Wi-Fi network data gets stuck there even after being cleared through the interface, leading to automatic connection attempts. Resetting NVRAM clears this cache.
4. Deleting network profiles (for corporate and Enterprise Wi-Fi)
If you connected to corporate network with certificates (for example, EAP-TLS or PEAP), standard methods may not work. Such networks are often tied to configuration profiles, which are installed through System Preferences → Profiles (or Devices → Profiles in new versions of macOS).
To delete such a profile:
- Open
System Preferences → Privacy & Security → Profiles. - Find the profile associated with Wi-Fi (often has "Wi-Fi" in the name)
Wi-Fi,802.1Xor company name). - Select it and press
–(minus), then confirm the deletion.
After this, the network will disappear from the list of known networks, and the security certificates will be removed. If the profile was installed through MDM (device management system, for example, Jamf or Mosyle), it may be restored the next time you connect to the Internet - in this case, contact your IT department administrator.
5. Complete reset of network settings: a last resort
If none of the methods helped, there remains radical solution - reset all network settings to factory defaults. This will remove all saved Wi-Fi networks, VPN configurations, proxy settings and other parameters. Use this method only as a last resort!
Instructions:
- Open
Terminal. - Run the command to delete all network preferences:
sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist - Then delete the network services cache:
sudo rm /Library/Preferences/SystemConfiguration/preferences.plist - Reboot MacBook.
After restarting, macOS will create new configuration files with default settings. You will need to reconfigure all connections, including Ethernet, Wi-Fi And VPN.
Table: Comparison of methods for deleting Wi-Fi networks on a MacBook
| Method | Suitable for | Complexity | Side effects | lead time |
|---|---|---|---|---|
| Uninstall via System Preferences | Typical home networks | ⭐ (simple) | No | 1 minute |
Terminal (networksetup) |
Hidden Networks, Enterprise Wi-Fi | ⭐⭐ (average) | Requires administrator rights | 2-3 minutes |
| Resetting NVRAM | The network "returns" after removal | ⭐⭐ (average) | Reset volume and screen resolution | 5 minutes |
| Deleting profiles | Corporate networks with certificates | ⭐⭐ (average) | All profiles (VPN, security) are deleted | 3 minutes |
| Complete reset of network settings | Critical connection errors | ⭐⭐⭐ (difficult) | Are being removed All network settings | 10+ minutes |
Common problems and their solutions
"The network disappeared from the list, but the MacBook still connects to it."
This is a typical symptom of data "sticking" in NVRAM. Perform reset NVRAM, as described above. If this doesn't help, check for availability. hidden profiles via Terminal:
profiles -L
After deleting a network, my MacBook can't see other access points.
The settings may have gotten corrupted. Wi-Fi module. Try:
- 🔄 Turn Wi-Fi on/off via the menu in the status bar.
- 🖥️ Create a new network location V
System Preferences → Network → Location. - 🔧 Reset SMC (For MacBook until 2018 with removable battery).
"I can't delete the network because the '–' button is grayed out."
This happens if:
- 🔒 The network is currently active (disconnect from it).
- 🛡️ You do not have administrator rights (password required).
- 🏢 Network managed MDM-profile (contact the IT department).
macOS Standard Settings|
Terminal (networksetup commands)|
Reset NVRAM/PRAM|
Deleting profiles|
Never deleted networks|
FAQ: Answers to frequently asked questions
Is it possible to delete a Wi-Fi network on a MacBook without an administrator password?
No, deleting networks via Terminal or editing system files requires administrator privileges. If you don't have access, try the standard method via System Preferences—it may work without a password if the network isn't protected by corporate policies.
Why does my MacBook automatically connect to my old network even though I deleted it?
This happens because of the cache in NVRAM or the presence of a hidden profile. Perform reset NVRAM and check System Preferences → Profiles for corporate configurations. Also, make sure the network is not added to the list. priority via Terminal (networksetup -listpreferredwirelessnetworks en0).
How do I delete a network if its name contains non-printable characters?
If SSID contains spaces, quotes, or special characters, enclose it in single quotes in Terminal:
sudo networksetup -removepreferredwirelessnetwork en0 '$@#Wi-Fi'
To be on the safe side, copy the network name from the list (networksetup -listpreferredwirelessnetworks en0) and paste it into the command.
Will the network be removed from other Apple devices (iPhone, iPad) if I remove it from my MacBook?
No, deleting the network on MacBook does not affect other devices. Networks are synchronized via iCloud Keychain only if the function is enabled Password synchronization in the settings iCloudTo remove a network from all devices, do it manually on each one.
Is it possible to restore a deleted network if I forgot the password?
If the network was deleted using the default settings, it's impossible to restore it without the password. However, if you deleted it using the Terminal, try extracting the password from Keychain Access (assuming it's saved there): open Programs → Utilities → Keychain, find the network name and double-click on the entry. Check the box Show password and enter your Mac account password.
If none of the described methods helped to solve the problem with Wi-Fi, it is worth checking macOS updates (sometimes network bugs are fixed in new versions) or contact Apple support service - especially when it comes to corporate devices with MDM-management.