How to Forget a WiFi Network in Windows 10: All the Deletion Methods

A situation where the operating system Windows 10 Automatically connecting to an unwanted or faulty router is a familiar problem for many users. This often occurs after changing a password, replacing hardware, or moving to a new location where the network name is the same as the previous one. The system attempts to use saved encryption keys, resulting in endless authentication attempts and internet inaccessibility.

To break this cycle, you need to forcibly delete the saved connection profile from the operating system database. Simply disconnecting from the access point is not enough, since Windows will continually attempt to reconnect when a familiar SSID is detected. In this article, we'll cover all available methods, from standard interface settings to advanced console commands.

You'll learn how to quickly clear your list of trusted networks, which is especially important for laptops that move between different locations. Proper profile management not only solves connection issues but also improves performance. safety your device, preventing automatic login to open or suspicious access points.

Uninstall via Windows Settings menu

The easiest and safest way to delete a profile is to use the built-in graphical interface. This method is suitable for most users, as it doesn't require entering complex commands. However, it's worth keeping in mind that some updates Windows 10 Microsoft has changed the layout of the elements, so the algorithm may differ slightly.

To get started, open the Start menu and select the gear icon to access Settings. Next, navigate to Network & Internet and select the Wi-Fi tab in the left menu. Here, you'll find the "Manage known networks" link, which opens a list of all connections you've ever used.

Find the desired network name (SSID) in the list and click it. A "Forget" button will appear. Clicking this will instantly delete all saved data, including passwords and IP settings. If the button is grayed out or missing, you may be using a corporate OS with restricted security policies.

⚠️ Attention: After deleting a profile, all devices synced through a Microsoft account may also lose access to that network. Make sure you're deleting the specific profile that's causing the issue.

📊 How often do you change your Wi-Fi passwords?
Once a month
Once every six months
Once a year
I never change

Using the CMD command line

If the graphical interface isn't working correctly or the "Forget" button is blocked, the command line comes to the rescue. This tool provides direct access to the service. WLAN AutoConfig, allowing for deeper profile management. This method is especially useful when working with remote computers or through scripts.

Run Command Prompt as Administrator by typing cmd in the search and selecting the appropriate option. First, you need to display a list of all saved profiles to find the exact network name, as it must match up to the character. To do this, use the command netsh wlan show profiles.

Once you've found the exact network name, run the delete command. The syntax requires the profile name to be enclosed in quotation marks if it contains spaces. Running the command immediately clears the registry of connection data, and the system will no longer attempt to connect to that point automatically.

netsh wlan delete profile name="Your_Network_Name" i="Wi-Fi"
What to do if the command fails?

If the system reports "Access Denied," make sure you're running the console as an administrator. Also, check to see if the uninstall process is running in another window. In rare cases, you may need to restart the WLAN AutoConfig service via services.msc.

Removing via PowerShell

For users who prefer modern automation tools, PowerShell offers more flexible options for working with network adapters. This method is similar to CMD, but uses a different syntax and can be integrated into complex system maintenance scripts. It is especially effective on newer Windows 10 builds.

Open PowerShell with administrator privileges. Unlike the regular command line, you can use pipelines to filter results. First, list the profiles with the command netsh wlan show profilesto identify the target network. Please note the case of the letters in the name.

To uninstall, enter a command similar to CMD, as PowerShell also supports utilities netshThe advantage of PowerShell is the ability to bulk delete profiles using a mask, which is convenient when cleaning up test computers or after major changes to the office infrastructure.

netsh wlan delete profile name="Name_of_Network" i="Wi-Fi"

After completing the operation, it is recommended to restart the computer or simply reconnect the wireless adapter for the changes to take effect immediately. This ensures that the DNS cache and routing tables are updated.

Complete reset of network settings

If deleting a specific profile doesn't help and connection issues are system-wide, it's a good idea to perform a full reset of your network components. This restores all network settings to factory defaults, deleting all saved VPN, Ethernet, and Wi-Fi profiles.

Go to "Settings" → "Network & Internet" → "Status." Scroll to the bottom of the page where you'll find the "Network Reset" link. Clicking "Reset Now" will initiate the process, after which your computer will restart in 5 minutes. This is a drastic, but often the only reliable way to fix driver errors.

Please note that after the reset, you will have to re-enter passwords for all Wi-Fi networks. Firewall and antivirus settings may also be reset, so make sure you have access to the necessary license keys or accounts.

☑️ Checklist before resetting the network

Completed: 0 / 4

Common mistakes and their solutions

The profile deletion process isn't always smooth, and users may encounter various error codes. Most often, issues are related to access rights or blocking by third-party antivirus software. Understanding the nature of these errors allows you to quickly resolve obstacles.

If you receive the error "The parameter is incorrect" when trying to forget a network, check that the interface name is specified correctly. In the Russian version of Windows 10, the default name is Wireless network or Wi-Fi, but it can be changed by the user. You can find out the exact name with the command netsh wlan show interfaces.

Another common issue is the inability to delete a profile that's currently in use. In this case, you must first disconnect from the network and then delete the profile. If this doesn't help, try temporarily disabling the adapter in Device Manager.

Error code Probable cause Solution method
5 Access denied Run the console as administrator
87 Invalid parameter Checking the profile name and interface
123 Syntax error Checking for quotation marks in a network name
1602 The user interrupted Repeat the operation without interruption

Cleaning the registry manually

For advanced users who have not been helped by standard methods, there is the option of deleting entries directly through the registry. WindowsThis method requires extreme caution, as incorrectly changing system keys can lead to OS instability.

Open the registry editor by typing regedit in the Run window. Go to the path HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\ProfilesThis is where data about all networks ever connected is stored. You need to find the folder with the desired profile by value ProfileName on the right side of the window.

Deleting the corresponding registry key completely erases network information. However, before performing any actions, it is strongly recommended to back up the registry or create a system restore point. This will allow you to roll back changes in the event of a critical failure.

⚠️ Attention: Interfaces and registry paths may vary depending on the Windows 10 build version and localization. Always check the official Microsoft documentation for up-to-date paths before making any changes.

Why won't Windows 10 let me forget a network?

Blocking is often caused by enterprise group policies or third-party antivirus software that considers the network safe and protects its profile. Corruption in the system files responsible for managing network connections can also be the cause.

Will resetting the network remove the WiFi driver?

No, resetting the network only deletes software settings and connection profiles. The hardware drivers remain in place, but their settings are reset to default values, which often resolves signal instability issues.

Is it possible to restore a deleted profile?

Without a prior registry backup or profile export, it's impossible to recover deleted data (especially passwords). You'll have to re-enter your network security key the next time you connect.

How to delete all profiles at once?

For bulk deletion, you can use a loop in PowerShell or custom scripts that sequentially apply the delete profile command to all names in the list returned by the show profiles command.

Does deleting a profile affect internet speed?

There's no direct impact on speed, but clearing the list of "dead" networks prevents background connection attempts, which can slightly reduce the load on the processor and save battery life.