During active use of laptops MacBook or desktop computers iMac a huge number of saved wireless connection profiles accumulates. Deleting a WiFi network on Mac This often becomes necessary when your device stops connecting to your router correctly or you've changed your internet service provider. macOS automatically remembers security settings and configurations for every location you've ever visited, which sometimes leads to conflicts in system files.
The accumulation of old records can slow down the automatic search for available access points, especially in densely populated areas with multiple signals. The system attempts to compare current conditions with cached data, which sometimes causes delays or authorization errors. Clearing the list of known networks is an effective method for initially diagnosing connection issues.
In this guide, we'll cover several ways to manage connection lists, from standard settings to working with system files via the terminal. You'll learn how to delete specific profiles, clear the entire list, and reset network interfaces to factory settings. This knowledge will help you maintain your Mac in optimal condition.
Why should you delete old WiFi networks?
The main reason why it's important to periodically review your saved connections is because of how the operating system works. When you're in range of a previously used network, macOS Attempts to automatically connect to it using saved encryption keys and IP settings. If the router has been replaced but the network name (SSID) remains the same, the computer will unsuccessfully attempt to log in with the old credentials, ignoring the new password.
In addition, a large number of entries in the system key can cause service failures. configd, which is responsible for system configuration. This manifests itself as intermittent connection drops or the inability to obtain an IP address automatically. Removing unnecessary profiles frees up resources and eliminates the possibility of mistakenly switching to weak or insecure access points.
There's also a security aspect: deleting public networks you've connected to in cafes or airports reduces the risk of automatically connecting to fake access points run by malicious users. Hackers often use the names of popular free networks for Man-in-the-Middle attacks.
⚠️ Important: Before deleting networks, make sure you have up-to-date passwords for any access points you plan to use in the future. After deleting, the system will forget the encryption key and will need to re-enter it.
Regular cleaning is especially important for users who frequently move between the office, home, and coworking spaces. In such settings, the list can grow to hundreds of entries, complicating navigation and managing connection priorities.
Removing a network using macOS System Preferences
The easiest and safest way to remove an unnecessary entry is to use the system's graphical interface. This method is suitable for most users and does not require any special knowledge. In modern versions macOS, such as Ventura, Sonoma and Sequoia, the settings interface has undergone significant changes, becoming more similar to the interface iPadOS.
To get started, open the Apple menu in the upper left corner of the screen and select "System Preferences." In the window that opens, find the "Wi-Fi" section in the sidebar. This displays the current connection status and a list of known networks. If you're using an older version of macOS (Monterey or later), the path will be slightly different: "System Preferences" → "Network" → select "Wi-Fi" → click "Advanced."
In the "Known Networks" or "Preferred Networks" list, find the network you want to delete. In newer OS versions, next to the network name you'll see an icon with three dots or a "More Details" button. Clicking it will reveal a "Delete this network" button or simply a minus sign. Confirm the action, and the profile will be immediately removed from memory.
☑️ Check before deletion
If you need to delete multiple networks at once, in older versions of macOS you could select them by holding down the key Command and click the minus sign. In the new interfaces, you'll have to delete them one by one, which can take time if the list is large. After deleting, it's recommended to restart your computer to ensure the changes take effect.
Working with network priorities in macOS
Deleting a network isn't the only way to manage connections. It's often more useful to simply change the priority so your Mac preferring the home network over the office one, even if the office signal is stronger. The order of networks in the "Preferred" list determines the order of connection attempts.
In the classic interface (macOS Monterey and earlier), you could drag and drop networks in the "Advanced" window to change their order in the list. The top row always has the highest priority. In newer versions of macOS, this feature has become less obvious, but the principle remains the same: the system scans the air and attempts to connect to the first available network from the list of known networks.
To manage priorities in current versions, you can use the "Auto-Connect" feature. If you disable automatic connections to a specific network, macOS will only connect to it upon your explicit request, even if it's at the top of the known network list. This is an effective way to "remove" a network from active use while preserving the password.
| Action | Old macOS (before Monterey) | New macOS (Ventura+) | Result |
|---|---|---|---|
| Removing one network | Select, press "-" | Three dots → Delete | Password forgotten |
| Disabling auto-connection | Uncheck the box "Automatically" | Auto switch | Manual connection |
| Change of priority | Drag and drop list | Limited | Change of order |
| View password | Double-click → Show | Copy password | Visualization of the key |
Understanding the logic behind priorities helps you avoid situations where your laptop locks onto a weak neighbor's signal instead of your router's strong one simply because the neighbor's network was added to the list first.
Hidden priority settings
In some corporate profiles, administrators can block reordering of networks. In this case, deletion is only possible through the configuration profile or terminal.
Using Keychain Access to Delete Profiles
Sometimes the graphical interface crashes, and the network won't be removed using the standard method or reappears after a reboot. In such cases, Keychain Access comes to the rescue (Keychain Access). This is a system utility where all passwords, certificates and access keys are stored, including WiFi keys.
To open the utility, click Command + Space, enter "Keychain," and launch the app. In the left menu, select the "Passwords" category. In the list on the right, find the name of the wireless network you want to delete. Note that there may be multiple networks if you connected to them using different security types (WPA2, WPA3).
Select the desired entry and press the key Delete Or select "Edit" → "Delete" from the menu. The system will ask you to confirm the action by entering your administrator password or using Touch ID. After deleting the entry from your keychain, the network will disappear from the list of known Wi-Fi networks in your Wi-Fi settings.
⚠️ Caution: Use extreme caution when working with keychains. Deleting system certificates or non-Wi-Fi keys may disrupt other applications or access to corporate resources. Only delete entries that list "AirPort network password" as the type.
This method is the most thorough cleanup, as it directly affects the secrets store. If the network isn't removed even from here, it may be blocked by a mobile device management (MDM) profile, which is common on corporate devices.
Resetting network settings via Terminal
For advanced users who need to delete all networks at once or resolve complex configuration issues, there is a command line method. Terminal Allows you to interact with system files directly, bypassing graphical limitations. This method requires careful attention.
The first step is to delete the preference files. Open Terminal and enter the following command to navigate to the preferences folder:
cd /Library/Preferences/SystemConfiguration/
Here we are interested in files containing prefixes com.apple.airport.preferences, com.apple.network.eapolclient And com.apple.wifi.message-tracerBefore deleting, it is recommended to create a backup copy of the folder or copy these files to your desktop. To delete, you can use the command sudo rm, but safer just rename them by adding the .old extension.
After manipulating the files, you must restart your computer. Upon startup, macOS will detect missing configuration files and create new, clean ones with factory settings. All saved networks will be forgotten.
An alternative way is to use a utility networksetupIt allows you to manage network settings using scripts. The command to delete all networks for a Wi-Fi interface looks like this:
sudo networksetup -removeallpreferredwirelessnetworks en0
Here en0 — the standard name of the Wi-Fi interface on most MacBooks. If you have a desktop iMac or an external adapter is used, the name may be different (for example, en1). You can find out the exact name of the interface using the command networksetup -listallhardwareports.
Troubleshooting: Network won't delete or comes back
It can be annoying when a deleted WiFi network reappears on a Mac. This is most often due to syncing via iCloudIf you have this network saved on your other devices (iPhone, iPad) and iCloud Keychain is enabled, the password and network settings may automatically return to your Mac.
To resolve this issue, go to iCloud settings on all devices and temporarily disable password syncing, or delete the network on all devices simultaneously. Only then will it stop coming back.
Another cause is corporate profiles. If the device belongs to an organization, the IT department may have installed a configuration profile that forcibly adds certain networks and prevents their removal. You can check this in System Preferences → Profiles (if the section is visible).
It's also worth checking for third-party antivirus software or network managers, which may have their own connection databases and restore them after resetting macOS system preferences.
Frequently Asked Questions (FAQ)
Will my Wi-Fi password be deleted if I simply forget the network?
Yes, "Forget this network" or removing it from the list of known networks completely erases the saved password from your device's memory. You'll have to re-enter it the next time you connect.
Is it possible to delete the network I am currently connected to?
Yes, you can delete an active network profile. However, immediately after deleting it, the connection will be lost, and the computer will attempt to connect to another known network or create a new access point if no other options are available.
Where can I find the Wi-Fi password file on my Mac?
Passwords are physically stored in the Keychain database, usually at the path /Users/[User]/Library/Keychains/login.keychain-dbHowever, editing this file directly with a text editor is not allowed and is dangerous; use the built-in Keychain utility.
Does the number of saved networks affect the speed of my Mac?
The network list itself doesn't affect overall processor or memory performance. However, it can slow down the initial network search after waking the laptop and cause delays when automatically connecting.
How to delete all Wi-Fi networks at once?
The fastest way to do this is through the Terminal with the command sudo networksetup -removeallpreferredwirelessnetworks en0You can also delete preference files in the SystemConfiguration folder, as described in the Terminal section.