How to Completely Delete a Wi-Fi Network on a Mac: From Easy to Complex

Deleting a saved Wi-Fi network MacBook or iMac It seems like a simple task—until you encounter a network that continues to connect automatically, despite all your efforts. There are various reasons for clearing the network list: from the desire to hide your presence at a public access point to the need to reset incorrect settings that are interfering with a stable connection. Unlike Windows or Android, where deleting a network often comes down to one click, macOS offers several levels of network "forgetting" - from superficial to deep.

In this article we will analyze three official methods deleting Wi-Fi networks on Mac, including hidden system files that continue to store data even after standard deletion through the interface. We'll pay special attention to the nuances of chips. M1/M2 and old Intel-machines, and we'll also look at why the network sometimes "comes back" after a reboot. If you're looking for a way to not just disconnect from the network, but completely erase its traces from the system, including passwords and connection priorities, this guide is for you.

1. Standard removal via "System Preferences"

The most obvious way is to use the graphical interface macOSIt's suitable for most users and doesn't require technical skills. However, this method has a limitation: it only removes the visible portion of the network data, leaving some system files intact.

To delete a network:

  1. Open System Preferences (gear icon in Dock or through the menu Apple → System Preferences).
  2. Go to the section Net.
  3. In the left menu, select Wi-Fi, then press Additionally... in the lower right corner.
  4. In the window that opens, find the tab Wi-Fi (or Net in older versions macOS).
  5. On the list Preferred networks select the desired network and click (minus) below the list.
  6. Confirm deletion by pressing the button Delete.
  7. Click OK, then Applyto save the changes.

After this, the network will disappear from the list of available connections. However, The password and some parameters may remain in the keychain. (Keychain), which will automatically connect the next time a network is detected. To avoid this, proceed to the next step.

Make sure the network has disappeared from the list in System Preferences → Network → Wi-Fi → Advanced|

Check if Mac automatically connects after restarting|

Open A bunch of keys and delete the entry with the network password (if there is one)|

Restart your Mac for the changes to take effect-->

⚠️ Warning: If you use macOS Ventura or newer, section interface Net may differ. In some versions the option Additionally... hidden behind the button with three dots (...) next to the network name.

2. Removing a network via Keychain Access (Keychain Access)

Keychain Access is a secure storage for passwords and certificates in macOSEven if you deleted the network through settings, its password may still be there, causing it to automatically connect the next time it's discovered. To completely erase all traces:

Open the utility Bunch of keys (can be found via Spotlight upon request Keychain Access). In the left menu, select System or Entrance (depending on where the password is stored). Then:

  1. In the search bar, enter the name of the Wi-Fi network.
  2. Find a record with the type AirPort password (or Wi-Fi password in new versions).
  3. Right-click on the entry and select Delete.
  4. Confirm deletion by entering the administrator password (if required).

If the entry is not found, try searching by part of the network name or check the category All elementsIn some cases, passwords are stored in a keychain. iCloud - to delete them you will need authorization in iCloud Keychain.

3. Complete removal via Terminal (for advanced users)

If the standard methods don't work, the most radical way remains - deleting the network through TerminalThis method clears all network-related system files, including hidden priority settings and cached data.

Open Terminal (through Spotlight or folder Utilities) and run the following commands:

# View a list of all saved networks

security find-generic-password -wa "Wi-Fi network_name"

Remove the network from system settings (replace "network_name" with the actual name)

networksetup -removenetworkservice "network_name"

Clear all Wi-Fi settings (warning: will reset all networks!)

sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist

sudo rm /Library/Preferences/SystemConfiguration/preferences.plist

sudo rm ~/Library/Preferences/ByHost/com.apple.network.eapolclient.*

After executing the commands restart your MacThe system will automatically restore the settings files to default parameters, but all saved networks (including passwords) will be erased.

⚠️ Attention: The last command (rm) deletes All Network settings, not just Wi-Fi. This can affect VPN, Ethernet, and other connections. Use this only if other methods fail, and be prepared to reconfigure your network.
What to do if the Terminal displays the error "Operation not permitted"

This means you don't have sufficient rights. Try:

1. Launch Terminal as administrator (via sudo -s).

2. Temporarily disable System Integrity Protection (SIP), if you use macOS Catalina or newer. To do this:

- Restart your Mac in Recovery Mode (hold Cmd + R when turned on).

- Select from the menu Utilities → Terminal and enter csrutil disable.

- Restart your Mac and repeat the commands.

- After completion, enable SIP again with the command csrutil enable.

4. Reset the Wi-Fi module (hard reset)

If the network still doesn't disappear even after all these steps, the problem may lie in the Wi-Fi module's hardware cache. This method is especially relevant for MacBook Pro/Air with chips M1/M2, where network settings sometimes get stuck at the firmware level.

To reset:

  1. Shut down your Mac.
  2. Hold the power button for 10 seconds (on M1/M2) or a combination Shift + Control + Option + Power button within 7 seconds (on Intel).
  3. Release the buttons and turn on your Mac as usual.

This procedure resets NVRAM/PRAM and the Wi-Fi module's hardware settings, which often helps with "phantom" connections. After the reset, all network settings (including the network connection order) will be reset to factory defaults.

Removal method Difficulty level Removes password Resets network priority Requires a reboot
Via System Preferences Easily No No No
"Bunch of keys" Average Yes No No
Terminal (partial removal) Difficult Yes Yes Yes
Terminal (full reset) It's very difficult Yes Yes Yes
Hard reset Average No Yes Yes

5. Why might a network return after being deleted?

Even after thorough removal, some networks stubbornly reappear. Here are the most common causes and how to fix them:

  • 🔄 Synchronization via iCloud: If the option is enabled iCloud Key Sync, the network may recover from the cloud backup. Solution: Temporarily disable syncing in System Preferences → Apple ID → iCloud → Passwords & Keys.
  • 📱 Connecting via Continuity: If your iPhone or iPad connected to the same network, macOS can automatically add it via the function Instant HotspotSolution: Disable it. Wi-Fi on your mobile device or log out manually.
  • 🖥️ Corporate profiles: If the Mac is controlled via MDM (for example, in office networks), settings can be restored from a configuration profile. Solution: delete the profile in System Preferences → Profiles.
  • 🔧 Corrupted settings files: Sometimes files NetworkInterfaces.plist or preferences.plist become corrupted, causing the networks to "return." Solution: Remove them manually (see the section on Terminal).

If none of these methods work, it's worth checking your Mac for malware that could modify network settings. To do this, use the built-in utility. Activity Monitor or antivirus solutions like Malwarebytes.

Via "System Preferences"|

Via Keychain |

Via Terminal|

Never deleted|

Another way-->

6. Alternative methods: network hiding and connection priorities

Sometimes, instead of completely deleting the network, it is enough hide it or lower priorityto prevent your Mac from connecting automatically. This is useful for public networks (such as cafes or airports) where you don't want to save the password but occasionally use the connection.

To hide a network:

  1. Open System Preferences → Network → Wi-Fi → Advanced.
  2. On the list Preferred networks Find the network you need.
  3. Uncheck the box next to its name (if there is one).
  4. Drag a network to the bottom of the list to lower its priority.

Now your Mac will only connect to this network manually. If the network is hidden (not broadcasting its SSID), you can add it manually without saving the password:

  1. In the same window, click + (plus) below the list of networks.
  2. Enter the network name (SSID), select the security type and enter the password.
  3. Uncheck the box Remember network (if there is one).

7. Restoring deleted networks: what to do if they were deleted accidentally?

If you've accidentally deleted the network you need, you can restore it in several ways:

  • 🔍 Check your backups: If you have a backup Time Machine, you can restore the settings files (NetworkInterfaces.plist And preferences.plist) from the backup copy.
  • 📱 Import from another device: If the network is saved on iPhone or another Mac, you can transfer it via AirDrop (network configuration file) or manually enter the password.
  • 🔑 Recover from Keychain: If the password is still stored in Keychain Access, it can be copied and re-entered when connecting.

If the network is corporate (with WPA-Enterprise or 802.1X), you may need to reinstall the security certificate to restore the connection. This is usually provided by your network administrator.

⚠️ Attention: When restoring networks from backups Time Machine Make sure the backup date predates the deletion. Otherwise, you'll restore "clean" files without the deleted network.

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

Is it possible to delete a network without knowing the password?

Yes, no password is required to delete a network via System Preferences or TerminalHowever, to delete a record from Keychains You may need your Mac administrator password (not your Wi-Fi password!).

Why do old networks return after updating macOS?

For major updates (for example, with Monterey on Ventura) macOS may restore some settings from a backup. To avoid this, delete networks after system updates. Also check if syncing is enabled via iCloud.

How do I remove a network if my Mac won't connect to the internet?

All the described methods (except for a hard reset) work without an active connection. If you don't have internet access but need to remove a network, use Terminal or A bunch of keys - they do not require a network connection.

Is it possible to delete all networks at once?

Yes, but this is a radical step. Follow the Terminal:

sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist

sudo rm /Library/Preferences/SystemConfiguration/preferences.plist

After rebooting, all network settings will be reset, including Wi-Fi, Ethernet, and VPN. You'll have to set up your connections again.

Why aren't some networks showing up in the Preferred Networks list?

This can happen for several reasons:

  • Network added via configuration profile (check in System Preferences → Profiles).
  • The network is hidden (does not broadcast SSID) and must be added manually.
  • Network settings are corrupted - try resetting NetworkInterfaces.plist.