Situations requiring a complete "forget" of a wireless network on a computer occur quite frequently. This may be due to changing the router's security key, upgrading to new hardware, or troubleshooting connection issues that can't be resolved using standard methods. The system often remembers old configurations and attempts to apply them, blocking internet access.
In Windows, the process of deleting saved network data isn't always obvious to the average user. The interface is hidden deep within menus, and some OS versions require the use of the command line to completely clear the network profile cache. Understanding these mechanisms will allow you to effectively manage connections.
In this guide, we'll cover all the current methods, from the Windows 10 and 11 graphical interface to advanced PowerShell methods. Deleting a network profile - This is a secure operation that simply forces the computer to ask for the password again the next time you try to connect, which often solves the problem of inability to log in.
Why do I need to delete a saved network profile?
The main reason users have to search for a way to remove a Wi-Fi password on a laptop is a configuration conflict. When you change the password on your router, your laptop continues to attempt to log in using the old, now invalid credentials. The system doesn't always automatically recognize that the security key has been changed and may repeatedly return the error "Unable to connect to this network."
Deleting a profile is also useful when switching to a new router with the same network name (SSID). The computer will apply the old security and encryption settings from the previous device, which will cause problems. A forced reset forces Windows to re-handshake the access point and retrieve the latest settings.
Another important aspect is - data securityIf you've used public Wi-Fi or a guest network, deleting the profile after ending the session ensures that your device won't automatically connect to that hotspot in the future. This prevents potential data interception through fake access points with the same names.
Removing a network through Windows 10 and 11 settings
The easiest and most secure way to get rid of your old password is to use the operating system's built-in settings menu. In modern versions of Windows, this process has become more intuitive, although the layout of the options may vary slightly depending on the OS version. You don't need any third-party utilities.
To get started, open the Start menu and select the gear icon to open "Settings." Next, navigate to the "Network & Internet" category. On the left side of the screen (or in the center in Windows 11), find "Wi-Fi" and click it. This displays the current wireless module status and a list of available connections.
In Windows 10, select "Manage known networks." You'll see a list of all profiles the laptop has previously connected to. Find the desired network in the list, click it, and select "Forget." This action will immediately delete all saved keys and settings for this access point.
The Windows 11 interface is similar, but the visual design has been updated. Go to "Wi-Fi," then click "Manage known networks." After selecting the target network, click "Forget." If you don't see the desired name in the list, the profile may have been previously deleted or hidden by system restrictions.
⚠️ Note: After performing the "Forget" operation, the laptop will immediately disconnect if it was connected. Make sure you have internet access via mobile data or cable if you urgently need to download drivers or check your email.
☑️ Check before deletion
Using the Command Prompt to Reset the Network
If the graphical interface isn't working correctly or the desired profile isn't listed, the command line comes to the rescue. This method is considered more reliable, as it directly accesses the system's wireless network management services. It's especially effective when the Windows interface is glitchy.
To launch the utility, press the key combination Win + R, enter cmd and press Enter. For the command to run successfully, it's recommended to run the console as an administrator. In the window that opens, enter the command to display all saved profiles:
netsh wlan show profiles
The system will return a list of all networks ever connected to this laptop. Find the exact name of your network in the "User Profile Names" column. Pay attention to case and spaces, as the command is sensitive to these details.
Once you have identified the exact name, use the following command to remove it:
netsh wlan delete profile name="Your_Network_Name"
If the network name contains spaces, be sure to enclose it in quotation marks. For example: netsh wlan delete profile name="Home WiFi"After executing the command, the system will confirm successful deletion: "Profile 'Network_Name' has been removed from the 'Wireless Network' interface."
What to do if the command doesn't work?
If the system reports "Profile not found," try entering the network name without quotation marks and without spaces. Also, check that the wireless network interface is specified correctly. In rare cases, restarting the WLAN AutoConfig service via services.msc helps.
Resetting network settings using PowerShell
For users who prefer more modern management tools, PowerShell offers advanced capabilities. This method allows not only deleting profiles but also performing in-depth diagnostics. The commands are similar to CMD, but the syntax can be more flexible for automation scripts.
Open PowerShell as administrator. To list profiles, use the same netsh utility, as it's part of the core Windows networking functionality. However, PowerShell allows you to filter the output, which is useful if you have a large number of saved networks.
To delete all profiles at once (a more radical method), you can use a loop. Be careful, as this will delete passwords for all Wi-Fi networks you've ever connected to:
netsh wlan delete profile name= i=
Star means "all", and the parameter i= specifies all interfaces. Use this command only if you plan to reconfigure all connections or are transferring the laptop to another owner. This is a guaranteed method. complete cleaning network settings.
| Team | Description of action | Risk of data loss |
|---|---|---|
show profiles |
Only displays the list | No |
delete profile name="Name" |
Removes one specific network | Short |
delete profile name=* |
Deletes all Wi-Fi profiles | High |
flushdns |
Clears DNS cache (optional) | No |
⚠️ Note: Deleting all profiles will result in you losing access to your home and work networks. Make sure you have the latest passwords handy to re-enter them, or use a cable connection for initial setup.
Cleaning the registry and system files
In rare cases where standard methods fail and the profile remains stuck in the system, you may have to resort to editing the registry. This is an advanced step that requires caution. Errors here can lead to instability in the Windows network subsystem.
Click Win + R, enter regedit and press Enter. Navigate to the following path:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Profiles
Inside the folder Profiles You'll find many folders with names in GUID format (a set of numbers and letters). As you browse through them, look for the parameter ProfileName, which matches your network name. Once you find the desired folder, you can delete it entirely. This will forcibly remove the network entry from the system database.
It's also worth checking out the thread:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WlanSvc\Interfaces
This is where data about wireless interfaces is stored. Deleting keys from here is equivalent to a complete reset of the adapter. After any manipulation of the registry Be sure to restart your computerfor the changes to take effect.
Troubleshooting: Network won't delete or reappears
Sometimes users encounter a situation where a deleted network magically reappears. This is most often due to Microsoft Account syncing features. If you have this profile saved on your other devices (tablet, phone) and Windows settings sync is enabled, the network may return automatically.
To prevent this, disable syncing your settings. Go to Settings → Accounts → Sync your settings and turn off the toggle, or select Selective sync without the Wi-Fi settings option.
Another reason is corporate policies (Group Policy). Administrators can impose specific network profiles on work laptops. In this case, deleting them using standard methods won't work—the button will be grayed out, and the command prompt will return an access error. Contact your IT department.
The problem may also lie in the wireless adapter drivers. If the driver Realtek, Intel or Qualcomm If the driver isn't working correctly, it may be caching data at the hardware level. Reinstalling the driver from the laptop manufacturer's official website often solves the problem of "immortal" profiles.
Frequently Asked Questions (FAQ)
Will the password be removed if I simply rename the network on the router?
No, for the computer, this will be a new network with a different name (SSID). The old profile will remain in the laptop's memory under the old name, but it will connect to the new network as an unknown one, prompting for the password again.
Is it possible to recover a deleted WiFi password on a laptop?
If you've already performed the "Forget" command or deleted the profile via the registry, Windows erases the security key. It can't be restored using system tools. However, if you have access to the router's web interface, you can view or change the password there.
Do I need to restart my laptop after deleting a profile?
Not required, but recommended. Rebooting ensures that all network services (WlanSvc) will reread the configuration and clear the cache. This is especially important if you've changed the security settings on your router.
Why does Windows say "This profile cannot be deleted"?
Most often, this means you don't have administrator rights. Try running the command prompt as an administrator. If this is a corporate laptop, the restriction may be imposed by the system administrator.
Does deleting a profile affect other devices in the home?
No, this operation is local. It only affects the settings of a specific laptop. Phones, tablets, and other computers on your network will continue to use their saved passwords unchanged.