Saved Wi-Fi networks on your laptop accumulate over time like digital junk: old hotspots from hotels, cafes, friends' guest networks, or offices you'll never connect to again. Not only do they take up space in your list of available networks, but they can also slow down the connection to current networks or even create security vulnerabilitiesFor example, if your laptop automatically connects to an open network with a suspicious name, the risk of traffic interception increases significantly.
In this article you will find step-by-step instructions To remove Wi-Fi hotspots on laptops with different operating systems: Windows 10/11, macOS (including the latest versions) and Linux (Ubuntu, Debian, Fedora). We'll also discuss why some networks won't be deleted using standard methods, how to clear stubborn profiles via the command line, and what to do if, after deleting, your laptop still connects to an unwanted network. A separate section is dedicated to securityHow to check for any traces of a remote network remaining in your system and how to prevent automatic connections to unsafe access points.
If you encounter errors like "Failed to delete network" or "No permission to change settings," you'll find solutions here. And for those who want to completely reset all Wi-Fi settings to factory defaults, we've prepared a separate guide with warnings about the potential consequences.
Why you should delete unnecessary Wi-Fi hotspots
At first glance, saved Wi-Fi networks seem harmless: they simply appear in the list of available connections. However, in practice, their presence can lead to a number of problems:
- 🔍 Slow connection: The laptop spends time scanning and trying to connect to old networks, especially if they have priority over the current network.
- 🛡️ Security risks: open or poorly protected networks (eg
Free_WiFiorStarbucks_Guest) can be used by attackers to perform an "evil twin" attack. - 🔄 Roaming conflicts: If there are multiple networks with the same name in the area (for example, in office buildings), your laptop may connect to the wrong one.
- 📡 Network Manager Overload: In Windows and Linux, the number of saved profiles is limited (usually 10-20), and if the limit is exceeded, new networks may not be saved.
It is especially critical to remove networks that:
- 🔴 They have open type security (without password).
- 🔴 Belong public places, where you no longer visit (airports, hotels).
- 🔴 Designed for temporary use (For example,
Setup_1234to configure the router).
In Windows 10/11, saved networks are retained in the registry and configuration files even after being deleted through the interface. This means that under certain conditions (such as after a system update), they may reappear in the list.
⚠️ Attention: If you are using a corporate laptop, some networks may be added via domain policies (Group Policy). Their removal by standard methods will be blocked.
How to remove a Wi-Fi hotspot in Windows 10 and 11
In recent versions of Windows, the process of deleting networks has been simplified, but hidden in an obscure location. Let's look at two methods: through the graphical interface and using the command line (for stubborn networks).
Method 1: Uninstall via Options (GUI)
This is the easiest method that suits most users:
- Open the menu
Startand go toSettings → Network and Internet → Wi-Fi. - Scroll down and click
Managing known networks. - Find the unnecessary network in the list, click on it and select
Forget.
If the network is not in the list, but the laptop still connects to it, try refreshing the list of networks (turn Wi-Fi on/off) or use the second method.
Turn off Wi-Fi for 10 seconds and turn it on again
Make sure your laptop is not connected to the network you are deleting.
Close programs that use the Internet (browsers, instant messengers)
Back up important data (in case of failure)
-->
Method 2: Uninstall via Command Prompt (CMD)
This method will be useful if:
- 🔹 The network is not displayed in Settings, but the laptop connects to it.
- 🔹 The error "Failed to forget the network" appears.
- 🔹 You need to delete all saved networks at once.
Open Command line as administrator (click Win + X and select the appropriate item) and run the following commands:
netsh wlan show profiles
This command will list all saved Wi-Fi profiles. Find the name of the network you don't need (for example, CoffeeShop_Free) and run:
netsh wlan delete profile name="CoffeeShop_Free"
To remove everyone saved networks use:
netsh wlan delete profile name= i=
⚠️ AttentionDeleting all profiles will result in the loss of passwords for all Wi-Fi networks. You will then have to re-enter them.
What to do if the command doesn't work?
If after execution netsh wlan delete profile The error "Profile not found" appears, try:
1. Specify the network name in quotation marks, even if it does not contain spaces: name="MyWiFi".
2. Use the parameter interface for a specific adapter: netsh wlan delete profile name="MyWiFi" interface="Wireless Network".
3. Restart your laptop and try again.
Method 3: Manual removal via registry (for experienced users)
If networks continue to appear after being removed, traces of them may remain in the Windows registry. This method requires caution. - Incorrect changes to the registry may lead to system failures.
- Click
Win + R, enterregeditand confirm the launch. - Follow the path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles - In the folder
ProfilesFind subfolders with names in the format{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}Open each one and check the value.ProfileName- it contains the network name. - Delete folders with unnecessary networks (right click →
Delete).
After the changes, restart your laptop.
Removing Wi-Fi hotspots on macOS (Ventura, Sonoma, and later)
On MacBooks and other Apple devices, the process of removing networks is more intuitive than in Windows, but there are some nuances. For example, some networks may "return" after updating macOS if they were added via configuration profiles (.mobileconfig).
Method 1: Via System Preferences
- Open
System Preferences → Network. - Select
Wi-Fiin the left menu, then clickAdditionally. - Tab
Wi-Ficontains a list Well-known networksSelect the network you don't need and click–(minus) to delete. - Confirm the action and press
OK.
If the button – is inactive, the network is protected by a configuration profile. To remove it, go to System Preferences → Privacy & Security → Profiles and delete the corresponding profile.
Method 2: Via Terminal (for hidden networks)
Sometimes networks don't appear in the GUI but remain in the system. To remove them completely:
- Open Terminal (can be found via Spotlight by searching
Terminal). - Enter the command to view all saved networks:
security find-generic-password -wa"NetworkName"Replace
NameNetworkto the name of your network (for example,security find-generic-password -wa"Starbucks"). - If the network is found, remove its password from your keychain:
security delete-generic-password -a"UserName" -s"NetworkName" -T /System/Library/CoreServices/SystemUIServer.appHere
Username— your Mac account name (you can find it inSystem Preferences → Users & Groups).
⚠️ AttentionRemoving the password from the keychain doesn't always remove the network itself from the list of known networks. To completely clear it, also delete the configuration file at this location:/Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plistBut before that Be sure to make a backup copy file!
Method 3: Reset all Wi-Fi settings (last resort)
If you need to delete All Saved networks and reset Wi-Fi settings to factory defaults:
- Open Terminal.
- Execute the commands one by one:
sudo rm /Library/Preferences/SystemConfiguration/NetworkInterfaces.plistsudo rm /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plist
sudo rm /Library/Preferences/SystemConfiguration/preferences.plist - Restart your Mac.
After this, all networks and passwords will be erased, and Wi-Fi settings will be reset to factory settings.
Deleting Wi-Fi Networks in Linux (Ubuntu, Debian, Fedora)
In Linux, managing Wi-Fi networks depends on the connection manager used. Most often, it is NetworkManager (in Ubuntu, Debian, Fedora), but in some distributions it may be connman or wpa_supplicantWe will consider the most common option - NetworkManager.
Method 1: Via a graphical interface (GNOME, KDE)
If you use GNOME (Ubuntu, Fedora with GNOME) or KDE Plasma:
- Click on the Wi-Fi icon in the taskbar.
- Select
Network settings(orEdit Connectionsin KDE). - Find the unnecessary network in the list, select it and press
Delete(orRemove).
In some versions of Ubuntu (e.g. 22.04+) the menu may look different. If the buttons Delete No, use the terminal.
Method 2: Via terminal (universal method)
Open Terminal (Ctrl + Alt + T) and run:
- View a list of all saved networks:
nmcli connection showLook for networks with the type
wifiin the columnTYPE. - Delete a specific network (eg.
OldOfficeWiFi):sudo nmcli connection delete id"OldOfficeWiFi" - To remove everyone Wi-Fi networks:
sudo nmcli connection delete $(nmcli -t -f NAME,UUID connection show | awk -F:'/wifi/ {print $2}')
If you use wpa_supplicant (for example, on Arch Linux), remove the network from the configuration file:
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Find the block with the network name (eg. network={ ssid="OldNetwork"... }) and delete it. Save the file (Ctrl + O) and restart the service:
sudo systemctl restart wpa_supplicant
⚠️ Attention: In some distributions (for example, Linux Mint) After deleting networks via the terminal, you may need to restart the network manager:
sudo systemctl restart NetworkManager
Method 3: Removal via wpa_cli (advanced)
If NetworkManager is not used and the network is controlled directly through wpa_supplicant:
- Connect to
wpa_cli:sudo wpa_cli - See the list of networks:
list_networks - Delete the unnecessary one (for example, with ID 2):
remove_network 2 - Save changes:
save_config
How to prevent automatic connection to a remote network
Removing a network from the list doesn't always guarantee that your laptop won't reconnect. This is especially true for:
- 🔹 Open networks (without password).
- 🔹 Networks with the same SSID (For example,
TP-Link_Extenderin different places). - 🔹 Networks added via domain policies (in corporate laptops).
To avoid unwanted connections:
1. Disable automatic connection in Windows
IN Settings → Network & Internet → Wi-Fi → Manage known networks Before deleting the network, uncheck the box Connect automaticallyThis will prevent reconnection even if the network profile remains in the system.
2. Use the Blacklist in macOS
MacOS allows you to block networks by SSID:
- Open
Terminal. - Add a network to the blacklist:
sudo /usr/libexec/airportd en0 disassociate(replace
en0to your Wi-Fi interface, if necessary). - To block a network permanently, create a file:
sudo nano /Library/Preferences/SystemConfiguration/com.apple.airport.preferences.plistand add the line to it:
<key>Blacklist</key><array>
<string>NameNetwork</string>
</array>
3. Configure network priority in Linux
IN NetworkManager You can set the connection priority:
nmcli connection modify"HomeWiFi" connection.autoconnect-priority 10
nmcli connection modify"WorkingWiFi" connection.autoconnect-priority 5
The network with the higher priority will connect first.
4. Use third-party blocking utilities
For Windows:
- 🔹 NetSetMan — allows you to manage network priorities and block unwanted ones.
- 🔹 WiFi Guardian - automatically blocks suspicious networks.
For macOS:
- 🔹 WiFiSpoof — allows you to hide your real MAC address and block networks.
What to do if the network is not deleted
Sometimes networks get stuck in the system and cannot be removed using standard methods. Here are some causes and solutions:
| Problem | Possible cause | Solution |
|---|---|---|
| The Forget button is grayed out (Windows) | The network was added via domain policy (Group Policy) | Please contact your network administrator or use gpedit.msc to change policies |
| Network reappears after deletion (macOS) | Configuration profile (.mobileconfig) overwrites the settings | Delete your profile in System Preferences → Profiles |
Error "Profile not found" in netsh (Windows) |
The network name contains special characters or spaces | Use quotes: name="My Wi-Fi" |
| The network is removed, but the laptop connects to it (Linux) | NetworkManager caches settings | Restart the service: sudo systemctl restart NetworkManager |
| You can't delete a network in a public area (e.g. at a university) | The network is controlled through 802.1X (Enterprise Wi-Fi) | Use netsh wlan delete profile name="*" with administrator rights |
If none of the methods worked, try reset network settings to factory defaults:
- 🔹 In Windows:
Settings → Network & Internet → Network reset. - 🔹 In macOS: delete files
com.apple.airport.preferences.plistAndNetworkInterfaces.plist(see the section on macOS). - 🔹 In Linux: delete the folder
/etc/NetworkManager/system-connections/.
⚠️ Attention: Resetting network settings will delete All Saved networks, VPN connections, and custom settings (such as static IP addresses) will be deleted. You'll then need to reconfigure your internet connection.
Security: How to Verify a Network Has Actually Been Deleted
Deleting a network through the interface doesn't always mean its traces are completely erased from the system. Residual data may remain in:
- 🔹 Windows Registry (see the section on manual deletion).
- 🔹 Configuration files (
/etc/wpa_supplicant.confin Linux). - 🔹 Keychain (macOS).
- 🔹 Wi-Fi driver cache.
To ensure the network is completely removed:
1. Check in Windows
Open Command line and run:
netsh wlan show profiles
If the network is not listed, but the laptop still connects to it, check the registry (see the section above) or use the utility WirelessKeyView from NirSoft for scanning hidden profiles.
2. Checking on macOS
Perform in Terminal:
security find-generic-password -l "NetworkName"
If the command returns data, the password is still stored in the keychain. Delete it (see the macOS section).
3. Testing in Linux
For NetworkManager:
nmcli -f NAME connection show | grep -i"netname"
For wpa_supplicant:
grep -i"ssid=NetworkName" /etc/wpa_supplicant/wpa_supplicant.conf
4. Checking at the driver level
In rare cases, your Wi-Fi adapter driver may cache network data. To clear the cache:
- 🔹 In Windows: disable/enable the adapter in
Device Manager. - 🔹 In Linux: Reload the driver module:
sudo modprobe -r iwlwifi && sudo modprobe iwlwifi(replace
iwlwifion your driver, for example,rtl8192ce).
FAQ: Frequently asked questions about deleting Wi-Fi networks
Is it possible to delete the network the laptop is currently connected to?
No, you need to disconnect from the network first. On Windows and macOS, the system will block the delete button if the connection is active. On Linux, the command nmcli may give an error Device or resource busyDisconnect from the network, then try again.
After deleting the network, my laptop stopped connecting to any Wi-Fi. What should I do?
It's likely that a critical profile was deleted or the adapter settings were reset. Try:
- Restart the laptop.
- Update your Wi-Fi driver (in Windows through
device Manager). - IN Linux reinstall NetworkManager:
sudo apt reinstall network-manager - Reset TCP/IP stack (in Windows):
netsh int ip resetnetsh winsock reset
If the problem persists, check whether the Wi-Fi adapter is disabled by hardware (for example, by a button on the laptop case).
How do I delete a network if I don't know its password?
A password is not required to delete a network - you only need administrator rights (in Windows/macOS) or sudo (in Linux). However, if the network is protected via 802.1X (corporate authentication), may require confirmation from an administrator.
Is it possible to restore a deleted network if I forgot the password?
If the network was deleted using standard methods (without resetting the settings), try to recover the password from:
- 🔹 Windows: use the utility WirelessKeyView (it shows passwords even for remote networks if they remain in the registry).
- 🔹 macOS: check your keychain (
security find-generic-password -l "NetworkName"). - 🔹 Linux: look at the file
/etc/NetworkManager/system-connections/NetworkName.nmconnection(the password is stored in encrypted form).
If the network was completely deleted (for example, by resetting the settings), it is impossible to recover the password; you will have to obtain it again from the network owner.
Why do old networks reappear after a Windows update?
This is a known issue in Windows 10/11 related to profile migration during upgrades. Solutions:
- Remove networks via
netsh(see the section on Windows). - Check the folder
C:\ProgramData\Microsoft\Wlansvc\Profiles\Interfaces— profile files may remain there (.xml). Remove them manually. - Disable the service WLAN AutoConfig before the update:
sc stop Wlansvcsc config Wlansvc start= disabledAfter updating, turn it back on:
sc config Wlansvc start= autosc start Wlansvc