Many users are familiar with the situation where a MacBook or iMac stubbornly tries to connect to an old, broken, or blocked access point. macOS is renowned for its intelligent connection management system, but sometimes it overdoes it, automatically selecting a network with a poor signal instead of switching to a more stable one. This can happen if you've changed your router but the network name remains the same, or if you're in a public place with multiple identical SSIDs.
The problem is quite easy to solve if you know where to look for the necessary settings. Unlike Windows, where wireless profile management is often buried deep within utility programs, Apple provides convenient tools directly within the system interface. However, the location of these elements has changed with the release of new versions of the operating system, such as macOS Ventura And Sonoma, which can be confusing for an inexperienced user.
In this article, we'll cover all the current methods for deleting connection profiles. You'll learn how to manage the list of known networks through the graphical interface and the command line for advanced scenarios. Understanding these processes will help you not only resolve connection issues but also improve performance. safety your device by deleting data about public hotspots that you no longer use.
Why do I need to delete old Wi-Fi profiles?
Many users ignore the accumulation of lists of connected networks, considering it a harmless system feature. In fact, storing dozens of profiles can negatively impact network detection speed and connection stability. When your Mac It scans the airwaves, comparing available signals with its database of known SSIDs. The more "junk" in this database, the longer the initial handshake with the router can take.
Additionally, there are situations where deleting a network is the only viable solution. For example, if you've changed the password on your router, but your Mac continues to attempt to log in with those credentials, causing constant authorization errors. This is also true when upgrading hardware: if the new router broadcasts a network with the same name as the old one but uses a different encryption standard, the protocol conflict can only be resolved by completely deleting the old profile.
⚠️ Attention: Before deleting corporate networks, make sure you have up-to-date re-authorization data (login, password, certificates), as it will be impossible to restore them from the system memory after deletion.
Another important aspect is - confidentialityIf you've used your laptop in cafes, airports, or hotels, your device has saved information about these hotspots. Theoretically, an attacker who created an access point with the same name (an Evil Twin attack) could force your Mac to automatically connect to it. Clearing the list of known networks minimizes the risk of such attacks.
Removing a network through System Preferences in newer versions of macOS
Since version macOS VenturaApple has completely redesigned the System Preferences panel, making it similar to the iPadOS interface. The process for deleting a network is now more intuitive, but its layout has changed. You no longer need to navigate complex paths through passcodes; everything is easily accessible in the Wi-Fi panel.
To get started, open the Apple menu in the upper left corner and select System PreferencesIn the sidebar, find the section Wi-FiHere you will see the wireless switch and a list of available networks. Pay attention to the button Details or the three-dot icon next to the network you're currently connected to, or find a familiar network in the list of known networks below.
Clicking the information icon (the letter "i" in a circle) next to the network name will take you to the specific connection's configuration menu. At the very bottom of the window that opens, you'll see a button. Forget this networkClicking it will instantly delete all saved encryption keys and IP settings for this SSID. After this, your Mac will stop attempting to connect to it automatically.
☑️ Check before deletion
If you use macOS Monterey or earlier versions, the logic remains similar, but the interface looks different. In older versions, you need to click the button Additionally in the lower right corner of the Wi-Fi window to see the full list of preferred networks. To delete a network, select the line and click the minus sign.
Managing networks using Access Keys
Sometimes the Wi-Fi settings graphical interface doesn't display all saved profiles, especially when it comes to hidden networks or old corporate connections. In such cases, a system utility comes to the rescue. Access keys (Keychain Access). This is the password and certificate storage where macOS stores all your secrets, including Wi-Fi passwords.
To find and remove a network, open Programs -> Utilities -> Access keysIn the search bar, enter the network name (SSID) you want to delete. The system will find the corresponding entry. Please note that the entry may be called AirPort network password or just have the name of your network. The entry type should be Keychain password.
Right-click (or use two fingers on the trackpad) on the found entry and select DeleteThe system will ask for confirmation, as this action is a security issue. You'll need to enter your administrator password or use Touch ID. After confirmation, the entry will disappear from the database, and your Mac will "forget" this network.
| Removal method | Availability | Complexity | Efficiency |
|---|---|---|---|
| Via Settings | macOS Ventura+ | Low | High |
| Via Access Keys | All versions of macOS | Average | Maximum |
| Via the Terminal | For experienced users | High | High |
Why might the network reappear?
Sometimes a network may reappear in the list if it's synced via iCloud Keychain from another device (iPhone or iPad). If you deleted a network on your Mac but it remains on your iPhone, iCloud may restore it to your computer the next time you sync. To prevent this, delete the network on all devices associated with your Apple ID.
Using the Terminal for Advanced Users
For those who prefer the command line or need to delete networks on multiple computers via scripts, there is a utility networksetupThis is a powerful tool built into macOS that allows you to manage virtually every aspect of your network settings. Working with Terminal requires attention, as there are no graphical prompts.
The first thing you need to do is find out the exact name of your network interface. Typically, the built-in Wi-Fi adapter is called en0To check this and see a list of all known networks, enter the command:
networksetup -listallnetworks
Then to remove a specific network, use the command with the flag -removenetworkThe syntax requires the interface name and the network name (SSID). For example, if your interface is en0, and the network is called HomeWiFi, the command will look like this:
sudo networksetup -removenetwork"HomeWiFi" en0
The system will prompt you for an administrator password to perform the action. After entering the password, the network will be immediately removed from the configuration. This method is especially useful if the graphical interface is frozen or unresponsive. It also allows you to remove networks that aren't listed in the default list but are registered in system configuration files.
⚠️ Attention: Be extremely careful when entering commands in the terminal. Incorrect use of flags or deleting system interfaces may result in loss of network connectivity, which will require manual restoration.
Troubleshooting automatic connection issues
Sometimes you forget a network, but your Mac still tries to connect to it. This could be due to DNS caching or a specific feature. Auto-connectionIf a standard uninstall doesn't help, try a complete network reset. This will return all Wi-Fi settings to factory defaults.
To do this in older versions of macOS, you could simply delete the configuration files from the folder /Library/Preferences/SystemConfiguration/However, in newer versions, Apple recommends creating a new location. Go to Network settings, click the Locations menu, and create a new one with a name like "Test." Switching to a new locale resets most temporary network settings.
It is also worth checking if the function is enabled Private Wi-Fi address (Private Wi-Fi Address). In modern versions of macOS, this feature generates a random MAC address for each network. Sometimes routers block devices when addresses change frequently. Try disabling this option for a specific network in the details menu before deleting it to see if this changes the system behavior.
How iCloud Impacts Password Syncing
The Apple ecosystem is built on deep device integration via iCloud. One of its key features is iCloud Keychain. This means that when you connect to Wi-Fi on your iPhone, your Mac automatically receives the password and can connect too. This is convenient, but it can create complications when deleting networks.
If you deleted a network on your Mac but it's still present on your iPad, iCloud may "restore" that network back to your computer the next time you sync. Therefore, if your goal is to completely remove a specific access point from the entire ecosystem, you'll need to repeat the deletion process on your iPad. each device where you are signed in with your Apple ID.
You can check which devices are syncing keys in iCloud settings. Go to System Preferences -> Apple ID -> iCloud and make sure that the item Bunch of keys is active. Disabling this feature will break password syncing, but will also deprive you of the convenience of automatic login on new devices.
Frequently Asked Questions (FAQ)
Is it possible to restore a deleted Wi-Fi network on Mac?
Yes, this is possible. You'll just need to find this network in the list of available connections and re-enter the password. Mac doesn't store deleted profiles in the trash, so you can't undo the deletion, but reconnecting is the same as the first time.
Why doesn't my Mac see the "Forget This Network" button?
The button may be missing if you're in Guest mode or if your account doesn't have administrator privileges. Also, in very old versions of macOS, this feature may have been implemented differently, via the right-click context menu.
Will this action delete all saved passwords?
No, this operation only affects the specific network you selected. All other saved Wi-Fi profiles, website passwords, and apps will remain safe and secure in your Keychain.
What to do if the network has the same name, but the routers are different?
In this case, your Mac may be confused. The best solution is to delete the profile completely and then connect to a new router. If the problem persists, temporarily rename the SSID on the router so your Mac sees it as a completely new network.