Saved Wi-Fi networks on a laptop are like old photos in an album: they were once useful, but now they just take up space and get in the way. If your laptop automatically connects to an unused access point with a poor signal, or you want to clear out your network list after moving, this article will help you figure out how to properly remove unnecessary connections. Unlike smartphones, where network management is intuitive, on laptops the process varies depending on the operating system and even its version.
We will consider all current methods: from standard tools Windows 10/11 And macOS From the command line to manual registry editing for experienced users. We'll also discuss why networks sometimes fail to be deleted the first time, and what to do if your laptop refuses to connect to new access points after clearing the registry. Let's pay special attention to security: removing networks from the list does not always mean that their passwords are erased from the system - few people know this.
Why you should delete old Wi-Fi networks
Saved networks may seem harmless, but in practice they create several problems:
- 🔄 Automatic connection to weak networks: The laptop may cling to an old point with a poor signal instead of a new, more stable one.
- 🔒 Data leakPasswords for saved networks are stored in the system and can be extracted by attackers (for example, through viruses or physical access to the device).
- 📡 Conflicts when reconnecting: If the network has changed its settings (for example, changed the password), the laptop will try to connect using the old data, which leads to errors.
- 🧹 List clutter: Dozens of unnecessary networks make it difficult to find the one you need manually.
In addition, in Windows There's a limit on the number of saved networks (usually around 20-50, depending on the version). If the limit is exceeded, new networks may not be saved or may replace old ones without warning. And on macOS Too many networks slow down the Wi-Fi menu.
How to delete a Wi-Fi network in Windows 10 and 11
In modern versions Windows The process is as simplified as possible, but hidden in an obscure location. Let's look at two methods: through the graphical interface and the command line.
Method 1: Through “Options” (GUI)
This is the simplest method that will suit most users:
- Open the menu
Startand selectParameters(gear icon) or clickWin + I. - Go to the section
Network and Internet→Wi-Fi. - Click
Managing known networks. - Find the network you don't need in the list and click on it. A button will appear.
Forget- press it.
IN Windows 11 The interface is a little different: after going to Wi-Fi you need to scroll down to the block Well-known networks and manage the list there. If there are many networks, use the search bar at the top of the window.
Close all programs using the Internet
Connect to another network (if you are deleting the current one)
Make sure you have the password for the network you are leaving-->
Method 2: Via Command Prompt (CMD)
This method is useful if the GUI is not working or you need to delete multiple networks quickly. Open Command line as administrator (click Win + X and select the appropriate item) and run:
netsh wlan show profiles
You'll see a list of all saved networks. To delete a specific one, enter:
netsh wlan delete profile name="NETWORK_NAME"
Replace NETWORK_NAME to the real name (in quotation marks). For example, for the network MyWiFi_5G the command will be:
netsh wlan delete profile name="MyWiFi_5G"
⚠️ Attention: If the network name contains spaces or special characters (eg.#,!), be sure to enclose it in quotation marks. Without quotation marks, the command won't work.
Deleting Wi-Fi Networks on macOS (Ventura, Monterey, Sonoma)
On MacBook the process is even simpler than in Windows, but there are some nuances with system networks. The instructions are relevant for macOS Ventura and newer:
- Open
System Preferences(gear icon in the Dock or via the Apple menu). - Go to the section
Net→Wi-Fi. - Click the button
Additionallyin the lower right corner. - Tab
Wi-Ficontains a listPreferred networksSelect the network you don't need and click–(minus) below the list. - Confirm deletion and click
OK.
In older versions macOS (to Monterey) the path is a little different: System Preferences → Network → Wi-Fi → Advanced → Preferred NetworksAlso on Mac You can delete networks through Terminal, but this requires administrator rights:
sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z
This command will reset all saved networks. To delete a specific one, use:
sudo networkssetup -removepreferredwirelessnetwork en0 "NETWORK_NAME"
⚠️ Attention: On macOS after deleting the network through Terminal A reboot may be required for the changes to take effect. Also, some system networks (e.g., eduroam in universities) can be restored after a restart.
Deleting Wi-Fi Networks in Linux (Ubuntu, Mint, Fedora)
In distributions based on Linux Network management depends on the connection manager used. Most often, it is NetworkManager (V Ubuntu, Mint, Fedora). Let's consider both options: via GUI and terminal.
Method 1: Graphical interface (GNOME, KDE, Cinnamon)
In most desktop environments:
- Click on the Wi-Fi icon in the taskbar (usually in the upper right corner).
- Select
Network settingsorEdit Connections(V KDE). - Find the tab
Wi-Fiand select the unnecessary network. - Click the button
Delete(orForget(in the English version).
IN Ubuntu With GNOME the path is this: Settings → Wi-Fi → Settings (gear next to the network) → Forget network.
Method 2: Terminal (for all distributions)
If you prefer the command line, use nmcli (utility for NetworkManager):
nmcli connection show
This command will display all saved connections. To delete a specific network:
nmcli connection delete "NETWORK_NAME"
For example, for the network HomeWiFi_2.4G:
nmcli connection delete "HomeWiFi_2.4G"
If NetworkManager not used (for example, in Arch Linux With netctl), the commands will be different. Check the network manager in your distribution with the command:
ip link
How to remove stubborn networks that won't go away
Sometimes networks remain in the list even after clicking ForgetThis happens because:
- 🔄 Data caching in the Wi-Fi adapter driver.
- 📁 Residual files in the registry (Windows) or configuration files (Linux/macOS).
- 🔒 Group politician (in corporate laptops).
Here's what to do in such cases:
For Windows: Registry Cleaner
If the network is not removed through standard means, its data may remain in the registry. AttentionEditing the registry is a risky operation. Make a backup before making changes!
- Click
Win + R, enterregeditand confirm. - Follow the path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles - In the folder
Profilesfind the subfolders with the network names (they are encrypted inGUID, but there will be a field on the right side of the windowProfileNamewith a real name). - Delete the folder with the unnecessary network.
After this, restart your laptop. If the network still appears, check the folder:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Wlansvc\Interfaces
Connection data may also be stored here.
For macOS/Linux: Manually clearing configuration files
IN macOS networks are stored in the file:
/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
It can be opened in Xcode or any text editor with administrator rights, find the block with the network name and delete it. Linux Configurations are usually located in:
/etc/NetworkManager/system-connections/
Delete the file with the network name (extension .nmconnection).
⚠️ AttentionBefore manually deleting configuration files, disconnect from all networks and make sure you have backups. Incorrect editing may result in the loss of all saved connections.
What to do if your laptop won't connect to Wi-Fi after uninstalling
Sometimes, after clearing the network list, problems with new connections occur. Here are typical causes and solutions:
| Problem | Possible cause | Solution |
|---|---|---|
| The laptop does not see the network | The Wi-Fi adapter is disabled | Turn it on with the button on the case or in Device Manager (Windows) |
| The connection is broken | Incorrect IP settings | Reset TCP/IP: netsh int ip reset (Windows) |
| Requires a password but won't connect. | Residual data in cache | Delete the network again and restart your laptop. |
| Slow speed | Auto-connection to a weak network | Sort networks by priority in adapter settings |
If the problem persists, try:
- 🔄 Reset network settings:
- IN Windows:
Settings → Network & Internet → Status → Network reset. - IN macOS: Delete the file
/Library/Preferences/SystemConfiguration/NetworkInterfaces.plistand reboot.
- IN Windows:
- 🔧 Update your Wi-Fi adapter driver (especially relevant for Windows).
- 📡 Check your router settings: sometimes the problem is not with the laptop, but with restrictions on the access point side (for example, filtering by MAC address).
Security: How to completely erase network data
Deleting a network through the interface does not always mean that its password is erased from the system. Windows passwords are stored in Network and Control Center, and in macOS/Linux — in the key storage. To ensure all traces are removed:
Windows: Remove passwords via Credentials
- Open
Control Panel(can be found through search). - Go to
Windows credentials(orCredential Manager(in the English version). - Tab
Windows credentialsContains a list of saved passwords, including Wi-Fi. - Find the network by name and delete the entry.
Alternatively, you can use the command line:
netsh wlan show profile name="NETWORK_NAME" key=clear
This command will display the network password. To remove it from storage, use:
rundll32.exe keymgr.dll,KRShowKeyMgr
A window will open Saved usernames and passwords, where you can delete unnecessary entries.
macOS: Clearing Keychain
Wi-Fi network passwords are stored in Keychain (Keychain Access):
- Open
Programs → Utilities → Keychain. - Enter the network name in the search bar.
- Find the type entry
AirPort network password. - Delete it (right click →
Delete).
Linux: Removing NetworkManager from the repository
Passwords are stored in encrypted form in files:
/etc/NetworkManager/system-connections/
Delete the network file (as described above) and clear the cache:
sudo rm /var/lib/NetworkManager/secret_key
⚠️ Attention: On corporate laptops, network passwords can be managed through Active Directory or MDM systems (For example, Jamf For macOS). In this case, after deletion, they will be restored the next time you connect to the domain.
FAQ: Frequently asked questions about deleting Wi-Fi networks
Is it possible to delete all networks at once without selecting each one individually?
Yes, but the methods depend on the OS:
- Windows: Use the command in
CMD(administrator):netsh wlan delete profile name= i=It will delete all saved networks.
- macOS: Perform in
Terminal:sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -z - Linux: Delete all files in
/etc/NetworkManager/system-connections/.
⚠️ After this, you will have to re-enter passwords for all networks.
Why does a network appear in the list again after it is deleted?
This happens because:
- Automatic connection to open networks (for example, in cafes or hotels). Disable the option
Connect automaticallyin the adapter settings. - Synchronization via account Microsoft (Windows) or iCloud (macOS). Check your sync settings.
- Corporate policies (If the laptop was issued by the company). Contact the IT department.
How can I find out which networks are saved on my laptop if they aren't visible in the settings?
Use command line:
- Windows:
netsh wlan show profiles - macOS:
networksetup -listpreferredwirelessnetworks en0(replaceen0to your interface) - Linux:
nmcli connection show
These commands will show all saved networks, including hidden ones.
Is it possible to restore a deleted network if I forgot the password?
If the network has not yet been completely removed:
- IN Windows look at the password using the command:
netsh wlan show profile name="NETWORK_NAME" key=clear(field
Key Content). - IN macOS open
A bunch of keysand find the entry with the password. - IN Linux passwords are stored in files
/etc/NetworkManager/system-connections/(decryption required).
If the network has already been deleted, the password can only be recovered:
- Through the router administrator (if you have access to its settings).
- Using specialized utilities (for example, WirelessKeyView For Windows), but they only work until reboot.
How do I prevent my laptop from automatically connecting to a specific network?
Instead of deleting the network, you can disable auto-connection:
- Windows:
- Open
Settings → Network & Internet → Wi-Fi → Manage known networks. - Select the network and click
Properties. - Disable the option
Connect automatically.
- Open
- Open
System Preferences → Network → Wi-Fi → Advanced. - On the list
Preferred networksuncheck the boxAutomatically join this network.