
How to Delete Wifi on Macbook? Erase Stored Network Info
Introduction If you have ever wondered How to Delete Wifi on Macbook? you are not alone. Over time, macOS remembers every wireless network you join, storing its name, security type, and password so you can reconnect automatically. While this is convenient, it
Introduction
If you have ever wondered How to Delete Wifi on Macbook? you are not alone. Over time, macOS remembers every wireless network you join, storing its name, security type, and password so you can reconnect automatically. While this is convenient, it can also cause problems. Old networks may conflict with current ones, saved credentials can become outdated, or you may simply want to clean up your list of preferred networks for privacy or security reasons. This guide explains exactly how to erase stored network information on a MacBook, covering every modern and legacy method so you can choose the approach that fits your version of macOS.
Whether you are running the latest macOS Sonoma or an older release, the steps below will help you remove individual Wi-Fi networks, delete saved passwords from Keychain, and even wipe all stored wireless data at once. By the end, your MacBook will only remember the networks you actually want it to remember.
Table of Contents
- Why You Might Want to Delete a Wi-Fi Network on a MacBook
- Understanding How macOS Stores Wi-Fi Networks
- Method 1: Forget a Network from the Wi-Fi Menu
- Method 2: Remove via System Settings (macOS Ventura and Later)
- Method 3: Remove via Network Preferences (Older macOS)
- Method 4: Delete Stored Passwords from Keychain Access
- Method 5: Use Terminal to Remove Wi-Fi Networks
- Comparison Table: Methods at a Glance
- How to Delete All Saved Wi-Fi Networks at Once
- Troubleshooting: Network Keeps Reappearing
- Tips and Best Practices
- Security Considerations
- Frequently Asked Questions
- Conclusion
Why You Might Want to Delete a Wi-Fi Network on a MacBook
There are many legitimate reasons to remove a stored Wi-Fi network. Maybe you changed your router password and your MacBook keeps trying to connect with the old credentials, causing repeated authentication failures. Perhaps you connected to a public hotspot once and no longer want your device to auto-join it. In some cases, a corrupt network profile can cause slow connections, frequent drops, or an inability to obtain an IP address.
Deleting the stored network forces macOS to treat it as new the next time you connect, which often resolves connectivity issues. It also helps with privacy, since removing a network removes its identifying information from your system. If you are preparing to sell or give away your MacBook, cleaning up saved networks is an essential step alongside signing out of iCloud and erasing the disk.
Understanding How macOS Stores Wi-Fi Networks
macOS keeps Wi-Fi information in two main places. The first is the preferred networks list, which contains the network name (SSID), security type, and connection order. The second is Keychain Access, where the actual password is stored securely. When you tell macOS to forget a network, it typically removes the entry from the preferred list, but the password may remain in Keychain until you delete it separately.
This distinction matters because simply removing a network from the list does not always erase the password. If you want a complete cleanup, you should address both locations. Additionally, macOS may sync Wi-Fi networks across devices using iCloud Keychain, meaning a network deleted on one Mac could reappear if another device re-adds it.
Method 1: Forget a Network from the Wi-Fi Menu
The fastest way to remove a network is directly from the Wi-Fi icon in the menu bar. This method works on nearly every version of macOS and is ideal when you are currently connected to or near the network.
Steps for the Wi-Fi Menu Method
- Click the Wi-Fi icon in the top-right corner of the menu bar.
- Make sure Wi-Fi is turned on.
- Click Wi-Fi Settings or Network Preferences depending on your macOS version.
- Find the network you want to remove in the list of known networks.
- Click the information (i) icon or the more options button next to the network name.
- Select Forget This Network and confirm.
If you do not see the network because you are not in range, it may not appear in this menu. In that case, use one of the deeper methods below.
Method 2: Remove via System Settings (macOS Ventura and Later)
Apple reorganized system preferences starting with macOS Ventura. The new System Settings app provides a centralized place to manage Wi-Fi networks, including saved and preferred ones.
Steps for macOS Ventura, Sonoma, and Sequoia
- Open the Apple menu and choose System Settings.
- Click Wi-Fi in the sidebar.
- Scroll to the Known Networks section.
- Click the three-dot menu or the information icon next to the network you want to delete.
- Choose Forget This Network.
- Confirm the action when prompted.
This removes the network from your preferred list. If the password remains in Keychain, follow the Keychain method later in this article.
Method 3: Remove via Network Preferences (Older macOS)
If you are using macOS Monterey or earlier, the interface is different. Network preferences allow you to manage the ordered list of preferred networks.
Steps for macOS Monterey and Earlier
- Open System Preferences from the Apple menu.
- Click Network.
- Select Wi-Fi from the left sidebar.
- Click Advanced at the bottom right.
- In the Preferred Networks list, select the network you want to remove.
- Click the minus (-) button beneath the list.
- Click OK, then Apply.
This method also lets you reorder networks by dragging them, which can help prioritize a home network over a neighbor’s signal.
Method 4: Delete Stored Passwords from Keychain Access
Even after removing a network from the preferred list, its password may remain in Keychain Access. Deleting it ensures no application can retrieve the credential without your permission.
Steps to Remove Wi-Fi Passwords from Keychain
- Open Spotlight with Command + Space and type Keychain Access, then press Return.
- In the left sidebar, select login under Keychains and Passwords under Category.
- Use the search field to type the network name (SSID).
- Look for an entry labeled AirPort network password or similar.
- Right-click the entry and choose Delete.
- Confirm deletion.
Repeat for any duplicate entries. Be careful not to delete unrelated passwords. If you are unsure, select the entry and press Space to preview details before deleting.
Method 5: Use Terminal to Remove Wi-Fi Networks
Advanced users can use the command line to list and remove networks. This is especially useful for scripting or when the graphical interface is unresponsive.
List Known Networks
networksetup -listpreferredwirelessnetworks en0
The output shows all saved networks for your primary Wi-Fi interface, usually en0. If your interface has a different name, you can find it with networksetup -listallhardwareports.
Remove a Specific Network
sudo networksetup -removepreferredwirelessnetwork en0 "NetworkName"
Replace NetworkName with the exact SSID. You will be prompted for your administrator password. The command removes the network from the preferred list immediately.
Remove All Preferred Networks
for net in $(networksetup -listpreferredwirelessnetworks en0 | tail -n +2); do sudo networksetup -removepreferredwirelessnetwork en0 "$net"; done
This loop removes every saved network. Use it carefully, as it cannot be undone.
Comparison Table: Methods at a Glance
| Method | Best For | Removes Password Too? | Difficulty |
|---|---|---|---|
| Wi-Fi Menu | Quick removal while in range | No | Easy |
| System Settings | macOS Ventura and later | No | Easy |
| Network Preferences | Older macOS versions | No | Easy |
| Keychain Access | Erasing stored passwords | Yes | Moderate |
| Terminal | Scripting and bulk removal | No | Advanced |
How to Delete All Saved Wi-Fi Networks at Once
If you want a completely fresh start, combine multiple methods. First, use the Terminal loop above to clear the preferred networks list. Then open Keychain Access and delete all AirPort network password entries. Finally, restart your MacBook so macOS rebuilds its network cache from scratch.
For an even deeper reset, you can remove the Wi-Fi interface configuration files located in /Library/Preferences/SystemConfiguration/, specifically files like com.apple.airport.preferences.plist. Delete them only after backing up, then restart. macOS will recreate clean versions automatically. This is rarely needed but can resolve stubborn issues where networks keep returning.
Troubleshooting: Network Keeps Reappearing
Sometimes a deleted network returns on its own. The most common cause is iCloud Keychain syncing. If another Apple device on your account still has the network saved, it can push it back to your Mac. To prevent this, delete the network on all your Apple devices or temporarily disable iCloud Keychain syncing while you clean up.
Another cause is a configuration profile installed by an employer or school. These profiles can enforce network settings. Check System Settings > Privacy & Security > Profiles (or System Preferences > Profiles on older macOS) and remove any unwanted profiles if appropriate.
Malware or unwanted software can also re-add networks. If networks appear that you never joined, run a security scan and review installed applications.
Tips and Best Practices
- Always verify the exact SSID before deleting, especially when using Terminal, because network names are case-sensitive.
- Keep a backup of important Wi-Fi passwords in a secure password manager before deleting them from Keychain.
- Use descriptive names for your own networks so you can identify them easily in the list.
- Periodically review saved networks, especially after travel, to remove temporary hotspots.
- If you manage multiple Macs, consider using a configuration profile or MDM solution to standardize network settings.
- After major macOS updates, recheck your preferred networks list, as upgrades can sometimes reorder or duplicate entries.
Security Considerations
Stored Wi-Fi credentials are sensitive. Anyone with access to your unlocked Mac and Keychain could potentially retrieve passwords. Deleting unused networks reduces your attack surface. If your MacBook is lost or stolen, a thief could connect to a saved network if they bypass your login, though FileVault encryption and a strong password mitigate this risk.
For shared or public computers, always delete networks after use. On personal devices, combine network cleanup with regular password updates on your router. If you suspect a credential has been compromised, change the router password and then delete the old entry from every device.
Frequently Asked Questions
Does deleting a Wi-Fi network disconnect me immediately?
If you are currently connected to that network, macOS will disconnect you. If you are not connected, nothing changes until you attempt to join it again.
Will deleting a network remove it from my iPhone too?
Only if iCloud Keychain syncing is enabled and you delete it on all devices. Otherwise, the network may remain on other devices and sync back later.
Can I recover a deleted Wi-Fi network?
There is no undo. You must manually re-enter the SSID and password to reconnect. This is why backing up important credentials is recommended.
Why does the network still show up after I deleted it?
Check Keychain Access for leftover passwords, review iCloud syncing, and look for configuration profiles. Also restart your Mac to clear caches.
Is it safe to delete system configuration files?
Only delete files in /Library/Preferences/SystemConfiguration/ if you understand the risks and have a backup. In most cases, the methods above are sufficient.
How often should I clean up saved networks?
A quarterly review is reasonable for most users. Frequent travelers or those who connect to many public hotspots may benefit from monthly cleanup.
Conclusion
Learning How to Delete Wifi on Macbook? gives you control over your device’s connectivity and security. Whether you use the simple Wi-Fi menu, the modern System Settings interface, legacy Network Preferences, Keychain Access, or Terminal commands, macOS offers multiple ways to erase stored network information. For a thorough cleanup, remove the network from the preferred list and delete its password from Keychain, then check for iCloud syncing or configuration profiles if it returns. With these steps, your MacBook will stay organized, secure, and ready to connect only to the networks you trust.