How to Completely Delete a Saved Wi-Fi Network on a MacBook: 5 Effective Methods

Forget Wi-Fi network on MacBook may be needed in a variety of situations: from a banal change of password on a router to the need to connect to a network with a different name (SSID), but with the same security parameters. Unlike Windows or Android, where deleting a network takes a couple of clicks, macOS stores connection data in several places. — and it doesn't always clean them correctly. If you encounter the problem MacBook If your device automatically connects to the wrong network, returns an authentication error, or simply "forgets" the new password, these instructions will help you completely erase traces of the old connection.

In this article we will look at 5 Proven Ways to Remove a Wi-Fi Network on MacBook Air/Pro (including models on Apple Silicon M1/M2 And Intel), operating under the control of macOS Sonoma, Ventura, Monterey and earlier versions. You will learn how to clear the network through the graphical interface, Terminal, reset settings NVRAM, and what to do if the network continues to appear in the list despite all manipulations. We will pay special attention to hidden configuration profiles, which may remain in the system even after standard removal.

1. Standard Wi-Fi network deletion via macOS settings

The most obvious way is to use built-in tools macOSThis method is suitable for most users and does not require technical skills. However, it does not always work 100%, especially if the network was added via configuration profile (for example, in corporate or educational institutions).

To delete a network in the standard way:

  1. Open the menu Wi-Fi in the upper right corner of the screen (antenna icon).
  2. Select an item Network settings... (Network Settings in new versions macOS).
  3. In the left side menu, click on Wi-Fi, then press Additionally... (Advanced).
  4. In the section Preferred networks (Preferred Networks) find the desired network, select it and press the "» (minus) below the list.
  5. Confirm deletion by pressing the button OK and save the changes.

After that MacBook It shouldn't automatically connect to the remote network. However, if the network still appears in the list or the device attempts to connect to it, its details are stored elsewhere in the system. In this case, proceed to the following methods.

Is automatic connection to this network disabled?

Is there an active VPN that could be blocking the changes?

The network was not added via a configuration profile (see section 3)

-->

⚠️ Caution: If you're deleting a network in a public place (such as a cafe or airport), make sure you're not currently connected to it. Some access points may block devices after multiple failed connection attempts.

2. Deleting a Wi-Fi network via Terminal (for advanced users)

If the graphical interface does not help, you can use Terminal - built-in tool macOS to execute commands. This method allows you to delete a network even if it's not visible in the settings or was added through third-party utilities.

Open Terminal (find through Spotlight upon request Terminal) and run the following commands in order:

# View a list of all saved networks

security find-generic-password -wa "Wi-Fi network name"

Delete a specific network (replace "Wi-Fi network name" with its SSID)

sudo networksetup -removepreferredwirelessnetwork en0 "Wi-Fi network name"

Clear access keys (passwords) for the network

security delete-generic-password -a "Wi-Fi network name"

After executing the commands, reboot MacBookIf the network name contains spaces or special characters, enclose it in quotation marks:

sudo networksetup -removepreferredwirelessnetwork en0 "My Wi-Fi Network"

If the command returns an error Could not find network, this means the network is not saved in the standard storage macOSIn this case, check for availability. configuration profiles (section 3).

networksetup -listpreferredwirelessnetworks en0

The first network in the list has the highest priority when automatically connecting.-->

3. Configuration profiles: hidden networks that cannot be deleted

One of the most common reasons why a Wi-Fi network continues to appear after being deleted is when it was added through configuration profile (.mobileconfig). Such profiles are often installed in corporate networks, universities, or when configured through Apple ConfiguratorThey take precedence over the standard settings and can block changes.

To check and delete profiles:

  1. Open System PreferencesPrivacy and SecurityProfiles (Profiles).
  2. If the list contains profiles with the name of the network or organization (for example, eduroam, CorpWiFi), select them and press "» to delete.
  3. Enter the administrator password if prompted.

After deleting the profile, reboot MacBook and check if the network has disappeared from the list. If the profile is password-protected or cannot be deleted (for example, on corporate devices), contact your network administrator.

Profile type Where is it installed? Is it possible to delete
Corporate Wi-Fi Through an MDM system (for example, Jamf) Only with admin rights
eduroam (universities) University website or IT service Yes, if there is no blocking
Guest network (hotels, airports) Via captive portal Yes, but it can be installed again
VPN + Wi-Fi VPN settings profile Removed along with VPN
⚠️ Warning: Deleting corporate profiles may disrupt access to internal company resources (email, intranet). Please check with your IT department before deleting.

Once a week

Rarely, but accurately

Only after updating macOS

Never had any problems-->

4. Reset NVRAM/PRAM: If the network is stuck in memory

NVRAM (or PRAM on the old ones Mac) is a special memory where macOS stores some settings, including Wi-Fi network data. If the network continues to appear even after being deleted through settings and Terminal, her recording could have remained in NVRAMResetting this memory will help fix the problem.

To reset NVRAM:

  1. Turn it off MacBook.
  2. Turn it on and immediately hold down the keys Option (⌥) + Command (⌘) + P + R.
  3. Hold the keys for about 20 seconds until MacBook won't reboot (on Apple Silicon release after the second logo Apple).

After the reset, you'll need to reconfigure some settings (for example, selecting a boot disk if you have multiple operating systems). This method also resets:

  • 🔊 Sound volume
  • 🌐 Screen resolution
  • ⌨️ Select a boot disk
  • ⏱️ Time zone

If after reset NVRAM The network still appears, check for availability hidden configuration files in the folder /Library/Preferences/SystemConfiguration/ (see section 5).

What to do if resetting NVRAM didn't help?

If the network continues to be displayed after a reset, the cause may be:

1. Network cache - delete files com.apple.airport.preferences.plist And NetworkInterfaces.plist from the folder /Library/Preferences/SystemConfiguration/.

2. Network adapter - try turning Wi-Fi off and on again Network settings.

3. Hardware problem - if the network is “ghost” (displayed, but does not connect), the Wi-Fi module may be faulty (often occurs on MacBook Pro 2016–2017).

5. Manually cleaning configuration files (for advanced users)

If all the previous methods have not worked, there is one last option - manual deletion of configuration filesThis method requires caution, as incorrect actions may disrupt network operation. We recommend backing up your files before deleting.

Open Terminal and run:

# Go to the network settings folder

cd /Library/Preferences/SystemConfiguration/

Delete configuration files (requires admin rights)

sudo rm -f com.apple.airport.preferences.plist

sudo rm -f NetworkInterfaces.plist

sudo rm -f preferences.plist

Restart the network service

sudo networksetup -setdhcp Wi-Fi

After reboot macOS will create new configuration files with default settings. You will need to re-enter passwords for all Wi-Fi networks.

⚠️ Warning: Deleting files preferences.plist will reset all network settings, including VPN, proxy, and connection priorities. If you use a static IP or a dedicated DNS, write them down in advance.

6. If the network still appears: check for viruses and MDM

In rare cases, a Wi-Fi network may need to be added again due to:

  • 🦠 Viruses or malware - Some programs install their own network profiles to collect data.
  • 🏢 MDM systems (Mobile Device Management) - if MacBook managed by the company, the IT department can force the installation of networks.
  • 🔄 Automatic scripts - some applications (for example, Little Snitch or Wireshark) can modify network settings.

To check the system:

  1. Launch Activity Monitor (System monitoring) and check for unusual processes with rights root.
  2. Install an antivirus (for example, Malwarebytes) and scan the system.
  3. Check the list of installed kernel extensions: kextstat | grep -v apple V Terminal.

If MacBook If it belongs to an organization, please contact your IT department. Deleting corporate networks yourself may violate security policy.

FAQ: Frequently asked questions about deleting Wi-Fi networks on a MacBook

Is it possible to delete a network that another user is connected to on this MacBook?

Yes, but only if you have administrator rights. Networks are saved individually for each user, but some system profiles (such as corporate ones) can be shared. To delete a network for all users, use Terminal with rights sudo.

Why do old networks reappear after updating macOS?

When updating macOS Sometimes old settings, including saved Wi-Fi networks, migrate. This is due to the service's operation. configdTo avoid the problem, please remove unnecessary networks before updating. Terminal (section 2) or make a backup copy and after the update restore only the settings you need.

How do I delete a network if its name is displayed in hieroglyphs or unknown symbols?

If SSID the network is not displayed correctly (for example, �?�?�), copy it from the list with the command:

networksetup -listpreferredwirelessnetworks en0

Then use to remove:

sudo networksetup -removepreferredwirelessnetwork en0 "�?�?�"

If the command does not work, try deleting all networks in a row (see section 5).

Is it possible to block automatic connection to a network without deleting it?

Yes, for this:

  1. Open Network Settings → Wi-Fi → Advanced.
  2. Find the network in the list Preferred networks.
  3. Uncheck the box Automatically join this network.

This will disable auto-connection, but the network will remain in the list. You can also lower its priority by dragging it down in the list.

What should I do if my MacBook won't connect to any access points after deleting the network?

This may occur after manually clearing the configuration files (Section 5). To restore Wi-Fi functionality:

  1. Reboot MacBook.
  2. Open Network settings and remove the current Wi-Fi interface (click "» at the bottom of the list).
  3. Add it again by selecting Wi-Fi in the list of interfaces.
  4. If it doesn't help, reset it. SMC (on Intel Mac) or update macOS.