How to Forget a Wi-Fi Network on a MacBook: A Complete Guide

Sometimes, the automatic connection process to a wireless network becomes a real hassle. Instead of quickly logging in, the device may spend hours searching for access, return errors, or attempt to connect to a network that no longer exists. In such cases, clearing the list of saved profiles becomes the only correct solution for restoring stable Internet operation.

The macOS operating system stores data about previously used access points in a special system storage. This is convenient for everyday use, but creates complications when passwords, router settings, or encryption types change. Users often wonder how Forget a Wi-Fi network on a MacBookto start the connection from scratch and avoid configuration conflicts.

In this article, we'll cover all the current methods for deleting profiles. We'll cover both standard methods using the graphical interface of the latest versions of macOS, as well as advanced command-line techniques for complex cases. You'll learn how to manage network priorities and troubleshoot errors that interfere with the proper operation of your laptop's wireless module.

Why won't my MacBook connect to a known network?

Connection issues often stem not from hardware, but from software conflicts. When a laptop attempts to use old encryption keys or an incorrect security protocol, the connection is blocked. macOS may "remember" parameters that are no longer relevant for your router, which leads to an endless loop of authorization attempts.

A common cause of failures is a change in frequency band or broadcast channel on the ISP's side. If you were previously using a 2.4 GHz network and your router switched to 5 GHz (or vice versa) but kept the same name (SSID), your computer may become confused by the protocols. In this case, you need to delete a Wi-Fi network from the device's memory so that it will re-request the current parameters the next time you log in.

⚠️ Attention: Before deleting your profile, make sure you have the current password for your wireless network. Afterwards, the system will require you to re-enter it to re-authorize.

It's also worth considering that some corporate networks or public access points require periodic security certificate renewals. If a certificate has expired and the old profile continues to dominate the priority list, access will be restricted. Resetting the specific connection settings often resolves this issue faster than a complete system reinstall.

📊 How often do you experience Wi-Fi problems on your Mac?
Daily
Once a week
Rarely
Never had any problems

Removing a network from preferences in macOS Ventura and later

In modern versions of the operating system, starting with Ventura, the system settings interface has undergone significant changes. The menu now resembles the structure of iPadOS, which can cause some confusion for users accustomed to the classic layout. forget a Wi-Fi network On current versions of macOS, you need to follow the steps in the updated menu.

First, open System Preferences from the Apple menu or the Dock. In the sidebar, select Wi-FiHere you'll see a list of known networks. Find the desired name in the list and click the "More details" icon (three dots or an information button) next to it. In the window that opens, find the "Forget this network" button and confirm.

This method is the safest and recommended for most users. It ensures that all associated keys and certificates for this specific access point are deleted without affecting other system settings. After this, the computer will no longer automatically attempt to connect to this SSID.

☑️ Check before deletion

Completed: 0 / 4

It's important to note that in some cases, the system may require confirmation by entering the administrator password or using Touch ID. This is a standard security measure to prevent other users from accidentally deleting important network profiles. If the system prompts you for a password, enter it correctly to complete the procedure.

Managing profiles in macOS Monterey and earlier

In the classic macOS interface, which was used before Ventura, the network management process looked different but remained fairly logical. Here, you used the Wireless Network utility or direct control via the status menu. delete a Wi-Fi profile, you had to go to system settings and select the "Network" section.

In the list of services on the left, select your Wi-Fi adapter and click "Advanced." A tabbed window will open, selecting the "Wi-Fi" tab. This displays a list of preferred networks. Select the network you don't need from the list and click the minus button. - below the list. Then click "OK" and "Apply" for the changes to take effect.

A peculiarity of older versions of macOS is that the order of networks in the "Preferred Networks" list mattered. The system would try to connect to them from top to bottom. By deleting a network, you not only cleared memory but also changed the connection priorities for the remaining access points. This allowed for flexible configuration of the laptop's behavior in different locations.

⚠️ Attention: In older versions of macOS, removing a network from the preferred list didn't always immediately disconnect the active connection. Often, manually turning off Wi-Fi and then turning it back on was required.

If you use MacBook Pro or Air If you have an older operating system, make sure you have administrator privileges to make changes to system settings. In corporate environments, these features may be blocked by security policies, making the standard removal method through the interface unavailable.

Using the Command Prompt to Delete Networks

For advanced users and system administrators, there's a more powerful tool: the terminal. The command line allows you to manage network profiles even when the graphical interface is malfunctioning or frozen. This method requires caution, as a syntax error can lead to unexpected results.

To delete a network via Terminal, open the Terminal app (found via Spotlight). You'll need to enter a command to remove a specific SSID from the system key. The command syntax is as follows:

sudo /System/Library/PrivateFrameworks/Apple80211.framework/Resources/airport -I

However, a more direct method for deleting a preferred network in macOS involves using the networksetup utility. The command to delete a network looks like this:

sudo networksetup -removenetwork "NetworkName" Wi-Fi

Here Network_Name — this is the exact SSID name, which should be replaced with your own. After entering the command, the system will prompt you for an administrator password. Enter it carefully; characters are not displayed on the screen as you type the password—this is normal terminal behavior for security reasons.

What to do if the command doesn't work?

If the networksetup command fails, the network name may contain special characters or spaces. In this case, try enclosing the network name in quotation marks or escaping characters. Also, check the exact interface name (Wi-Fi, en0, etc.) using the networksetup -listallhardwareports command.

Using the terminal gives you complete control over your network settings. You can not only delete but also reorder networks, change priorities, and reset adapter settings. universal method, which works on most versions of macOS, starting from fairly old builds.

Resetting network and Wi-Fi settings

If simply deleting the profile doesn't help and connection issues persist, a more thorough reset may be necessary. macOS doesn't have a single "Reset All Network Settings" button like iOS, but there are several effective methods. One of them is creating a new location in Network Preferences.

Go to System Preferences → NetworkAt the top of the window (or in the "Location" menu in older versions), select "Edit Locations" or "New Location." Create a new location with a name such as "Home" or "Test." Switching to a new location resets many temporary network configurations and caches, which often resolves DHCP and DNS issues.

Another radical but effective method is to delete preference files. This requires access to hidden system folders. You need to delete files starting with com.apple.network And com.apple.wifi from the folder /Library/Preferences/SystemConfiguration/After deleting these files and restarting, macOS will recreate them with factory settings.

Reset method Complexity Efficiency Risk of data loss
Forget network (UI) Low Average No
New location Low High No
Deleting plist files High Maximum Minimum
Terminal commands Average High No

Always exercise caution when working with system files. Deleting unnecessary files can reset all network settings, including static IP addresses and proxy servers you may have manually configured for work or school. Therefore, before doing this, write down your current settings.

Diagnosing and resolving common errors

Even after you were able to forget a Wi-Fi network and reconnect, specific errors may occur. For example, the message "Wi-Fi: has no IP address" or an infinite IP address acquisition. This often indicates an address conflict on the local network or a malfunctioning DHCP server on the router.

In such cases, renewing the DHCP lease can help. In the network settings, click "Advanced," go to the TCP/IP tab, and click "Renew DHCP Lease." This will force your MacBook to request a new address from the router, ignoring old leases.

If the issue is related to DNS (websites won't open even though Wi-Fi is connected), try specifying public DNS servers, such as Google (8.8.8.8) or Cloudflare (1.1.1.1). This often bypasses issues with the provider's DNS cache or local router errors.

⚠️ Attention: Interfaces and menu item names may vary slightly depending on the specific macOS version and localization. If you don't find an exact match, look for semantic equivalents.

It's also worth checking whether the "Random Wi-Fi Address" feature is enabled. In newer versions of macOS, this feature generates a random MAC address for each network. If your router is configured to whitelist MAC addresses, connecting will be impossible until you add a new random address to the router settings or disable this feature for your home network.

Frequently Asked Questions (FAQ)

Will Forgotten Network delete all my passwords?

Yes, when you select "Forget This Network," macOS deletes the saved password for that specific access point. You'll need to re-enter it the next time you connect. Passwords for other networks will remain saved.

Is it possible to restore a deleted network?

Automatically – no. The list of forgotten networks doesn't have a recycle bin. However, if you know the password, you can simply reconnect to it as a new network, and it will appear in the preferred list.

Why does my MacBook connect to my old network on its own?

This happens if the network remains in the "Preferred Networks" list and is within range. Deleting the profile or changing the network priority will resolve this issue.

Does deleting a network affect AirDrop?

No, AirDrop uses a combination of Wi-Fi and Bluetooth. Deleting a specific network profile doesn't disable the Wi-Fi module itself, so AirDrop will continue to work as long as the wireless adapter is enabled.

What should I do if the "Forget" button is inactive?

This may occur if you're in guest mode or if your settings are restricted by a management profile (MDM) in a corporate environment. Try using the terminal or contact your administrator.