How to Delete a WiFi Network on Mac: A Complete Guide

The macOS operating system is renowned for its stability and user-friendly interface, but over time, a lot of digital clutter accumulates in the settings. One of the most common and often overlooked aspects is the list of preferred wireless networks. Mac Automatically remembers every access point you've ever connected to, saving passwords and security configurations. This is convenient for frequent travelers, but it can be problematic if the network goes down or changes encryption settings.

A buildup of old profiles can cause your laptop to unsuccessfully attempt to connect to unavailable networks, draining battery power and creating delays in network interfaces. Furthermore, in public spaces or offices with multiple identical access point names (SSIDs), the system may select the wrong network for your current needs. Deleting unnecessary profiles isn't just a tidying up process; it's a necessity. optimization connection process.

In this guide, we'll detail how to forcefully delete a WiFi network from your device's memory. We'll cover both the standard graphical interfaces in current versions of macOS and more advanced command-line methods that allow you to clear data even when the graphical interface crashes. You'll learn where this data is stored and how to safely manage it without risking damage to system files.

Why do I need to delete old WiFi profiles?

Many users don't think about what's happening in the background of their computers. When you connect to a new network, macOS creates a separate profile for it with unique security settings. Over time, dozens of such profiles can accumulate. The main problem arises when multiple networks with the same name but different passwords or encryption types are within range. The system may attempt to use saved, but now incorrect, ones. access keys, which will lead to an infinite loop of connection attempts.

Another reason for cleaning is security. If you've connected to open or untrusted networks in cafes, airports, or hotels, your computer may automatically scan for them every time you turn on your WiFi. This makes your device vulnerable to man-in-the-middle attacks, where an attacker spoofs a legitimate access point. By removing unnecessary networks, you reduce your attack surface and improve your overall security. cyber hygiene.

⚠️ Important: Before deleting a network, make sure you have the current password if you plan to connect to it again. After deleting, all saved data, including WPA2/WPA3 keys, will be permanently lost.

Software conflicts are also worth mentioning. Sometimes updating macOS or changing router settings (for example, switching from WPA2 to WPA3) can cause incompatibility with the saved profile. In such cases, the computer may stop seeing the network altogether or display a "Failed to connect" error. The only reliable solution is to completely reset the profile for the access point.

Deleting networks in macOS Ventura, Sonoma, and later

With the release of macOS Ventura, Apple radically redesigned System Preferences, bringing it closer to the iPadOS interface. Wi-Fi management has become more intuitive, but the familiar tabs have disappeared. To delete a network in new OS versions, go to the Apple menu and select System Preferences. In the left sidebar, find the section Wi-Fi.

Unlike previous versions, there's no separate "Known Networks" list hidden deep within the menu. All known networks you've previously connected to, that are within range, or saved to iCloud are displayed directly in the main WiFi settings window. Hover over the network you want to delete, and a button with three dots or an information icon will appear to the right of its name. Click it to open the context menu.

In the menu that opens, select "Forget This Network." The system will ask for confirmation, warning you that your computer will no longer automatically connect to this access point. If you use iCloud Keychain, the network will be removed from all your devices linked to the same Apple ID. This is convenient for global clearing, but requires caution.

📊 How often do you change your WiFi passwords?
Once a month
Once every six months
Once a year
I never change

It's important to note that in new versions of macOS, the interface responds instantly, but syncing via iCloud Keychain may take some time. If the network disappears on one device but remains on another, simply wait a few minutes or check your internet connection. Make sure you're deleting the profile that's causing the problem, and not the system network required for proper operation.

Managing Networks in macOS Monterey, Big Sur, and Catalina

In macOS versions prior to Ventura, the System Preferences interface had a classic look with separate windows for each module. Here, the process for deleting networks is slightly different in its mechanics, although the logic remains the same. Open System Preferences from the Apple menu or the Dock and go to Net (Network).

In the list of connections on the left, select "Wi-Fi," then click the "Advanced" button in the lower right corner of the window. A new window with several tabs will open. The first tab you're interested in is: Wi-FiHere you'll find a complete list of preferred networks, sorted by connection priority. This list contains all previously saved profiles.

Select the network you don't need from the list and click the minus button (-), located below the list. Then click "OK" and then "Apply" for the changes to take effect. This method is useful because it allows you to see all saved networks at once, even those that are currently offline. You can reorder them by dragging and dropping them, setting the connection priority.

☑️ Check before deletion

Completed: 0 / 4

Be careful when working with the list of preferred networks. In older versions of macOS, a bug sometimes occurred where a deleted network would reappear in the list after a reboot. If this happens, try deleting it again using the Keychain Access utility, which we'll discuss below. Also, in these OS versions, deleting a network only affects the local computer unless key syncing is enabled.

Using Keychain for Deep Cleaning

Sometimes the network settings graphical interface may not work correctly or may not display all saved profiles, especially system or hidden ones. In such cases, Keychain Access, a macOS system utility that stores all passwords, certificates, and access keysThis is the most reliable way to guarantee the removal of any trace of a network connection.

Launch the utility via Spotlight search (Cmd+Space) or find it in the folder Programs → UtilitiesIn the left panel, select the "System" or "Login" category, as network passwords may be stored in different locations depending on the OS version and network type. In the list of names, find the name of your WiFi network (SSID). It may appear several times: as "AirPort Network Password," "EAP," or simply the network name.

Select all the entries associated with this network and click Cmd+Delete Or select "Delete" from the menu. The system will ask for your administrator password to confirm. After deleting the entries from your keychain, it is recommended to restart your computer. The next time you start up, macOS will assume it never knew about this network and will prompt you for the password again when you try to connect.

⚠️ Caution: Use extreme caution when deleting Keychain entries. Deleting system certificates or non-Wi-Fi keys may disrupt other applications or the operating system itself. Only delete entries whose names you are sure of.

This method is especially useful when you encounter the "Unable to Complete Connection" error or when the network shows as "Disconnected" and you can't clear it using standard means. The keychain is a fundamental storage location, and clearing it ensures data is removed at the deepest level.

Deleting a Network via Terminal: For Advanced Users

For those who prefer the command line or need to remove networks across multiple computers (such as in a corporate environment), macOS provides powerful tools through TerminalUsing commands allows you to automate the process and access hidden configuration parameters not visible in the GUI. However, this method requires precision and attention to detail.

The main command for working with WiFi profiles in macOS is located in the System Utilities. To delete a specific network, use the following command. Replace "NetworkName" with the exact name of your SSID:

networksetup -removepreferredwirelessnetwork en0 "NetworkName"

Here en0 — This is the standard WiFi interface name on most MacBooks and iMacs. If you have an external USB WiFi adapter or a specific configuration, the interface name may differ (for example, en1). You can check the list of all interfaces with the command ifconfig or networksetup -listallhardwareports.

How to find out the exact network name?

If the network name contains spaces, be sure to enclose it in quotation marks. If quotation marks don't work, you can escape the spaces with a backslash, for example: My\_Home\_WiFi. A misspelling of the name will result in the command failing.

After executing the command, the system doesn't always display a success confirmation message if there were no errors. To verify that the network has been removed, you can list the preferred networks with the command:

networksetup -listpreferredwirelessnetworks en0

If the network disappears from the list, the procedure was successful. This method is advantageous because it works even if the graphical interface is frozen or the settings are locked by a management profile (MDM), although the latter may require root privileges.

Resetting network settings and troubleshooting

If deleting a specific network doesn't help, or if your Mac continues to have trouble connecting to any wireless access points, a more drastic approach may be necessary: ​​a complete network settings reset. This will return all network interfaces to their factory defaults, deleting all saved WiFi networks, VPN settings, DNS, and Bluetooth connections.

macOS doesn't have a single "Reset Network" button like iOS, so the process involves several steps. First, delete all network configuration files. Open Finder, click Cmd+Shift+G and enter the path:

/Library/Preferences/SystemConfiguration/

In this folder, you are interested in files that begin with the prefixes com.apple.airport, com.apple.network And com.apple.wifi. Also file preferences.plistMove them to the desktop (as a backup) or delete them. Then, restart your computer. The system will create new configuration files from scratch.

Method Complexity Efficiency Risk
System Preferences Low Average Minimum
Bunch of keys Average High Average
Terminal High High Average
Reset files High Maximum High

After this reset, you'll have to re-enter the passwords for all WiFi networks. This can be inconvenient, but it often resolves issues with a glitchy network module, such as when your computer can't see any networks or constantly loses connection. Make sure you have access to your router passwords before beginning the process.

Frequently Asked Questions (FAQ)

Will the WiFi network on my other Apple devices be deleted?

Yes, if you have iCloud Keychain sync enabled. When you select "Forget This Network" on one device, macOS sends a command to Apple servers, and the network is removed from all devices (iPhone, iPad, other Macs) using the same Apple ID. If sync is disabled, the deletion will only occur locally.

Is it possible to restore a deleted network without entering a password?

No, this is not possible. Deleting a network deletes the saved encryption key from your device's memory. You will need to re-enter the password to reconnect. If you have forgotten the password, you can view it in Keychain on another device where the network is saved, or ask your router administrator.

Why won't my Mac let me delete a network (the button is grayed out)?

This could be due to several reasons. First, you may be trying to delete the network you're currently connected to—disconnect from it first. Second, your computer may have enterprise management (MDM) profiles installed that block changes to network settings. Third, there may be a temporary system failure that can be resolved with a reboot.

Does having a large number of saved networks affect internet speed?

The network list itself doesn't affect data transfer speeds during an active connection. However, if your Mac is constantly scanning the air and automatically trying to connect to dozens of old networks with weak signals, this can create a background load on the WiFi module and slightly increase the initial connection time to the desired network.

Where is WiFi network data physically stored on a Mac?

The data is stored in encrypted form in system files located at the path /Library/Preferences/SystemConfiguration/, and passwords and access keys are stored in the Keychain database, which is also protected by macOS system security. Direct editing of these files without the appropriate utilities is not recommended.