Saved Wi-Fi networks on your laptop accumulate over time like digital trash: old hotspots from hotels, cafes, or guest networks remain in the device's memory, slowing down connections to current networks, and can even create security vulnerabilities. If your laptop automatically connects to a weak neighbor's network instead of your home router, or you simply want to clean up your connection list, this article will help you figure out how. completely delete a Wi-Fi network from a device on any operating system.
The removal process varies depending on Windows 10/11, macOS or Linux, and may also require additional action if the network is "stuck" in the system or protected by a company password. We'll cover all scenarios—from standard removal via the graphical interface to manual cleaning of the registry and terminal. We'll pay special attention to hidden networks that don't appear in the list but continue to interfere with the connection.
Why you should delete old Wi-Fi networks
Each saved network takes up space in your laptop's memory and can cause the following problems:
- 🔄 Automatic connection to weak networks — the device selects the first point it encounters with a known name (SSID), even if its signal is weaker than the priority one.
- 🔒 Security vulnerabilities - open or poorly protected networks (e.g.
WEP-encryption) remain on the list and can be used by attackers. - ⚡ Slow connection - when searching for available networks, the laptop spends time scanning all saved ones SSID, including those that have long been unavailable.
- 📡 Conflicts with new networks - if the network name (SSID) is repeated (for example,
TP-Link_1234at the neighbors), the device may confuse them.
Furthermore, corporate networks often use security certificates that remain in the system even after the network is deleted. This can lead to authentication errors when connecting to new access points.
How to delete a Wi-Fi network on Windows 10 and 11
In modern versions of Windows, the process of deleting a saved network is as simple as possible, but there are some nuances for hidden networks and networks with manual settings (IPv4/IPv6). Let's consider both options.
Method 1: Via "Options" (graphical interface)
- Open the menu
Startand go toSettings → Network and Internet → Wi-Fi. - In the section Saved networks Find the desired network and click
Delete(trash can icon). - Confirm the action. The network will disappear from the list, but its name (SSID) may remain in the connection history.
If the network isn't listed, but the laptop still tries to connect to it, it's hidden. To remove it, you'll need command line.
Method 2: Via the command line (for hidden networks)
Hidden Networks (hidden SSID) are not displayed in the graphical interface, but continue to affect the connection. To remove them:
- Launch
Command lineas administrator (clickWin + X→Terminal (Administrator)). - Enter the command to view all saved networks:
netsh wlan show profiles - Find the name of the desired network in the list (for example,
MyHiddenWiFi) and delete it with the command:netsh wlan delete profile name="MyHiddenWiFi"
If the network is protected by a certificate (for example, in office networks), you may need to clearing the certificate store through certmgr.msc.
Check the network name (SSID) in the connection list.
Close all programs using the Internet
Run Command Prompt as Administrator
Back up your important data (in case of failure)-->
Method 3: Cleaning via the registry (for advanced users)
In rare cases, a network may become "stuck" in the Windows registry even after being removed through the interface. This is especially true for networks with manual settings. DNS or IPTo completely erase traces:
- Click
Win + R, enterregeditand confirm. - Follow the path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles - Find the folder with the network name (may be encrypted) and delete it.
⚠️ Attention: Incorrectly editing the registry can cause system failures. Before editing, create a restore point (Win + R → rstrui).
Deleting Wi-Fi networks on macOS (Ventura, Monterey, Sonoma)
On laptops MacBook The process of deleting networks is simpler than in Windows, but there are some peculiarities. For example, macOS may automatically connect to low-priority networks if the primary network is unavailable. To avoid this, you need to not only delete the network but also reset its priority.
Method 1: Via System Preferences
- Open
System Preferences → Network → Wi-Fi. - Click
Additionallyin the lower right corner. - Tab Wi-Fi → Find the network in the list Preferred networks and press
–(minus). - Confirm deletion and click
OK.
If the network is grayed out and cannot be deleted, it is protected by a configuration profile (for example, from your employer). In this case, you will need to delete the profile via System Preferences → Profiles.
Method 2: Via Terminal (for hidden networks)
Hidden networks in macOS can be removed via the command line:
- Open
Terminal(Launchpad → Utilities → Terminal). - Enter the command to view all networks:
networksetup -listpreferredwirelessnetworks en0(replace
en0to your Wi-Fi interface, if it is different). - Remove the unnecessary network with the command:
networksetup -removepreferredwirelessnetwork en0 "NetworkName"
After deleting, it is recommended to restart your laptop for the changes to take effect.
Deleting Wi-Fi Networks in Linux (Ubuntu, Debian, Fedora)
In Linux distributions, network management depends on the connection manager used: NetworkManager (most distributions), Wicd or connmanWe will consider the most common option - NetworkManager.
Method 1: Via a graphical interface (GNOME, KDE)
- Open the networks menu in the upper right corner (Wi-Fi icon).
- Select
Network settingsorEdit Connections. - Find the desired network, select it and click
Delete(orDelete).
If the network is not listed but is saved, check for hidden connections through the terminal.
Method 2: Via terminal (universal method)
To remove a network through NetworkManager:
- View the list of saved networks:
nmcli connection show - Remove the unnecessary network with the command:
nmcli connection delete "SetiName" - Restart
NetworkManager:sudo systemctl restart NetworkManager
For networks configured via wpa_supplicant (for example, in Raspberry Pi), you will need to edit the file /etc/wpa_supplicant/wpa_supplicant.conf and delete the network block manually.
⚠️ Attention: In some distributions (for example, Arch Linux)NetworkManagermay be disabled by default. Check the active network manager with the commandsystemctl status NetworkManager.
How to remove stubborn networks that won't delete
Sometimes networks remain in the system even after a standard deletion. This may occur due to:
- 🔐 Corporate profiles (For example,
.mobileconfigon macOS orXML-profiles in Windows). - 📜 Manual settings in the registry (Windows) or configuration files (Linux).
- 🔄 Cached data in the Wi-Fi adapter driver.
Let's consider solutions for each case.
1. Deleting corporate profiles
If the network was added via a configuration profile (for example, in an office or university), it cannot be removed using standard methods. You must:
- On Windows: Go to
Settings → Accounts → Access work or schooland disable the profile. - On macOS: Open
System Preferences → Profiles, find the network profile and delete it. - On Linux: Check folder
/etc/NetworkManager/system-connections/for the presence of files with the network name.
2. Resetting the Wi-Fi adapter settings
If the network continues to appear after deleting it, reset the adapter settings:
- On Windows:
- Open
device Manager(Win + X → Device Manager). - Find
Network adapters, select your Wi-Fi module (for example, Intel Wi-Fi 6 or Qualcomm Atheros). - Right click →
Properties → Driver → Reset.
- Open
sudo ifconfig en0 down && sudo ifconfig en0 up
(replace en0 to your interface).
3. Clear DNS cache and network settings
Sometimes a laptop "remembers" old network routes. To reset them:
- On Windows:
ipconfig /flushdnsnetsh int ip reset
netsh winsock reset - On macOS:
sudo dscacheutil -flushcachesudo killall -HUP mDNSResponder - On Linux:
sudo systemd-resolve --flush-cachessudo systemctl restart systemd-resolved - Automatic connection by priority. On Windows and macOS, networks are sorted by signal strength. To change the priority:
- On Windows:
netsh wlan set profileorder name="SetiName" interface="Wi-Fi" priority=1(the lower the number, the higher the priority). - On macOS: Drag and drop networks in the list
System Preferences → Wi-Fi → Advanced → Preferred Networks.
- On Windows:
- Cached router data. Some routers (eg. TP-Link or ASUS) save MAC addresses devices and reserve for them IP. Reset your router settings or change them. MAC address laptop.
- Background software. Programs like Hamachi, OpenVPN or corporate VPNs may force connections to specific networks. Check startup (
Task Manageron Windows,Activity Monitoron macOS).
Table: Comparison of Wi-Fi network removal methods
| operating system | Graphical interface | Command line | Additionally |
|---|---|---|---|
| Windows 10/11 | Settings → Wi-Fi → Saved Networks |
netsh wlan delete profile |
Registry, certmgr.msc for certificates |
| macOS | System Preferences → Wi-Fi → Advanced |
networksetup -removepreferredwirelessnetwork |
Deleting profiles in System Preferences → Profiles |
| Linux (NetworkManager) | Networks menu (depending on DE) | nmcli connection delete |
Manual editing /etc/wpa_supplicant/wpa_supplicant.conf |
| Linux (Wicd) | wicd-client → Network Management |
sudo wicd-cli -y --remove-network |
Editing /etc/wicd/wireless-settings.conf |
What to do if the network still connects after deletion
If your laptop stubbornly clings to a remote network, the problem may lie in:
If the problem persists, try reset network settings to factory defaults:
- Windows:
Settings → Network & Internet → Network reset. - macOS: Delete the file
/Library/Preferences/SystemConfiguration/NetworkInterfaces.plistand restart your laptop. - Linux: Delete the folder
/etc/NetworkManager/system-connections/and restart the service.
How to temporarily block a network without deleting it?
If you don't want to delete the network permanently, but want to disable automatic connection, you can:
On Windows: Disable auto-connection in network properties (Settings → Wi-Fi → Manage known networks → Network properties → Disable auto-connect).
On macOS: Uncheck "Automatically join this network" in Wi-Fi settings.
On Linux: Edit the network file in /etc/NetworkManager/system-connections/, adding a line autoconnect=false.FAQ: Frequently asked questions about deleting Wi-Fi networks
Is it possible to delete the network that the laptop is currently connected to?
Yes, but deleting it will disconnect you. It's recommended to first connect to a different network or use mobile data (via USB tethering from your phone).
Why does a network appear in the list again after being deleted?
This happens because:
- Automatic connection to open networks (disable in Wi-Fi settings).
- Corporate policies (for example, domain networks in Windows Pro/Enterprise).
- Caching in the Wi-Fi driver (restarting or updating the driver will help).
How to delete all Wi-Fi networks at once?
For bulk deletion:
- Windows: Use the script in
PowerShell:netsh wlan show profiles | Select-String ": " | %{$name=$_.ToString().Split(":")[1].Trim(); netsh wlan delete profile name="$name"} - macOS: Run in Terminal:
networksetup -listpreferredwirelessnetworks en0 | tail -n +2 | while read line; do networksetup -removepreferredwirelessnetwork en0 "$line"; done - Linux:
nmcli -t -f NAME connection show | while read line; do nmcli connection delete "$line"; done
⚠️ After bulk deletion, you may be required to re-enter passwords for all networks.
How do I delete a network if I forgot its name?
View a list of all saved networks:
- Windows:
netsh wlan show profiles - macOS:
networksetup -listpreferredwirelessnetworks en0 - Linux:
nmcli connection show
If the network is not listed, but the laptop connects to it, check for hidden networks (see the section on the command line).
Do I need to restart my laptop after deleting the network?
Generally, no. Changes are applied immediately, but in some cases (for example, after editing the registry or configuration files in Linux), a reboot can help avoid glitches.
1. Availability of corporate profiles (Windows/macOS).
2. DNS and route cache (reset via command line).
3. Router settings (it may reserve an IP for your device).-->