Changing providers, updating your router's security key, or simply wanting to clear the list of saved connections are common reasons why you might need to remove an old Wi-Fi password from your device. Operating systems Windows and macOS save this information by default for automatic future connections, but sometimes this interferes with normal network operation. Instead of endlessly trying to connect with incorrect information, it's best to completely erase the old profile from your computer's memory.
The removal process depends on your operating system version and the depth of cleaning you plan to perform. In some cases, simply "forgetting" the network in the standard menu is sufficient, while in others, you'll need to access system settings via the command line. Understanding where exactly Your credentials are stored and will help you avoid errors when reconnecting.
In this article, we'll cover all the current methods for clearing the Wi-Fi cache on laptops running Windows 10, Windows 11, and macOS. We'll cover both standard GUI methods and advanced techniques for removing hidden profiles that may interfere with a new connection.
Removing a network through Windows 10 and 11 settings
The easiest and safest way to remove a saved password is to use the built-in system settings menu. This method is suitable for most users, as it doesn't require knowledge of special commands and minimizes the risk of accidentally deleting system files. Simply find the list of known networks and select the one you want to remove.
In Windows 10, the path to Settings may vary slightly depending on the build version, but the general algorithm remains the same. Open the Start menu and go to Parameters (gear icon). Next, select a category. Network and Internet, and then find the item Wi-Fi in the side menu or in the center of the screen.
For more detailed control, click on the link Managing known networksA list of all Wi-Fi hotspots the laptop has previously connected to will open. Find the desired network name, click on it, and press the button. ForgetAfter this action, Windows will completely delete the connection profile, including security key and IP addressing settings for that specific access point.
⚠️ Note: After completing this procedure, your laptop will no longer automatically connect to this network. If you are within the router's coverage area, the system may immediately prompt you to enter a new password.
In Windows 11, the interface has become even more intuitive. Right-click the Wi-Fi icon in the system tray (near the clock) and select Network and InternetIn the window that opens, go to the section Wi-Fi, then select Managing known networksHere you can not only delete profiles but also configure connection priorities, which is useful if you have multiple routers at home with the same name (SSID) but different frequencies.
Clearing profiles via the command line (CMD)
Sometimes the graphical interface doesn't display all saved profiles, especially if there are hidden networks or system display errors. In such cases, the Windows command line comes to the rescue, allowing you to manage network configurations at a deeper level. This method requires careful attention, as you're working directly with system utilities.
First, you need to launch the command prompt as administrator. Right-click the Start button and select Windows Terminal (Administrator) or Command Prompt (Administrator)First, enter the command to view all saved profiles:
netsh wlan show profiles
The system will display a list of all networks whose profiles are stored on the laptop. Find the name of the network you want to delete. Note that the name must match exactly, including spaces and case. To delete a specific profile, use the following command:
netsh wlan delete profile name="Your_Network_Name"
If the network name contains spaces, be sure to enclose it in quotation marks, as shown in the example above. After entering the command, press Enter. The system will confirm successful deletion with the message "The profile was successfully deleted." This action immediately erases Wi-Fi password and all associated security settings from the registry.
☑️ Check before deleting your profile
There is also a command to completely clear all profiles at once, which can be useful when selling a laptop or for deep diagnostics. Command netsh wlan delete profile name= i This will delete all user profiles. Use this with extreme caution, as you'll have to re-enter passwords for all home and work networks.
Deleting a Wi-Fi profile on macOS
Laptop users MacBook And MacBook Air They encounter a different password storage structure. In macOS, Wi-Fi credentials are often stored in the Keychain, and simply "forgetting" a network in the menu doesn't always guarantee complete clearing, especially if connection conflicts occur.
For standard removal, go to System Preferences (or System Preferences in newer versions of macOS). Select the section Wi-FiIf you are using macOS Ventura or later, look for the button Additionally or the three-dot icon next to known networks. In the "Known Networks" list, select the desired network and click the delete button (minus or "Forget this network").
However, if the network continues to "pop up" or the password does not update, a manual cleanup via Keychain will be required. Click Command + Space, type "Keychain" and open the app. In the search, enter the name of your Wi-Fi network. Find an entry like "AirPort network password," right-click and select Delete.
| Action | Windows 10/11 | macOS |
|---|---|---|
| Graphical interface | Settings → Network & Internet | System Preferences → Wi-Fi |
| Command line | netsh wlan delete profile | Terminal (more complicated, rarely needed) |
| Storing passwords | System registry | Keychain |
| Reset all networks | Team with wildcard (*) | Deleting configuration files |
After deleting something from the keychain, the system may require the macOS user account password to confirm the action. This is a standard measure. security, which prevents malware from deleting important data. After cleaning, restart your laptop for the changes to take effect.
Resetting network and TCP/IP settings
If deleting the profile doesn't help and the laptop continues to display connection errors ("Can't connect to this network"), the problem may lie deeper—in the TCP/IP stack or adapter drivers. In this case, we recommend performing a full reset of network settings. This will return all network components to their factory settings.
In Windows 10 and 11, this is done through the settings menu. Go to Settings → Network & Internet → Advanced network settings (or just scroll down in the main network menu). Find the link Network resetThe system will warn you that after rebooting, you will have to re-enter passwords for all Wi-Fi networks.
This process will also reinstall network adapters and reset all network components to default settings. This is an effective solution when standard password removal fails due to software conflicts. After rebooting, the laptop will behave like a new device in terms of network connections.
⚠️ Warning: Resetting the network may temporarily disable virtual adapters (such as those used by Android emulators or virtual machines), and you will need to configure them again.
An alternative method for advanced users is to use TCP/IP reset commands. Open a command prompt as administrator and run the following commands:
netsh int ip resetnetsh winsock reset
ipconfig /flushdns
After running these commands, be sure to restart your computer. Reset Winsock This is especially important if socket settings have been changed in the system, which often happens after using antivirus software or VPN clients that can block the correct Wi-Fi password update.
Removing hidden and system profiles
There are situations where a network profile is hidden or system-wide, and standard methods cannot remove it. This often occurs on corporate laptops or after using specialized Wi-Fi configuration software. Such profiles can interfere with connecting to a new network with the same name (SSID).
To work with hidden profiles in Windows, you'll need the command line again. First, list all profiles with detailed descriptions:
netsh wlan show profiles type=all
Parameter type=all It even shows profiles that aren't listed in the regular list. If you find a "ghost" profile, delete it using the command we discussed earlier. If the system reports "Access Denied," check whether your antivirus or group policy is blocking the deletion.
What to do if the profile is not deleted?
If the delete command returns an error, try renaming the profile. Use the command: netsh wlan set profilename="OldName" newname="TempProfile". After renaming, delete the profile with the new name "TempProfile".
It's also worth checking the Device Manager. Click Win + X and select device Manager. Find the section Network adapters, right-click on your Wi-Fi module (usually contains the words Wireless, Wi-Fi, 802.11) and select Remove deviceCheck "Delete the driver software for this device," if available, and restart your laptop. Windows will automatically reinstall the driver, which often resolves issues with stuck passwords.
Problems with drivers and adapters
Often, the inability to delete or update a password is due to incorrect operation of the wireless adapter driver. Outdated software may incorrectly interpret profile deletion commands or cache old data in its own memory.
It is recommended to visit the official website of your laptop manufacturer (for example, Asus, Lenovo, HP) or the Wi-Fi chip manufacturer (Intel, Realtek, Qualcomm). Download the latest driver for your model and operating system. Installing an older version over the previous one may not help, so it's best to first uninstall the current driver through Device Manager.
In the driver properties (in Device Manager, under the "Power Management" tab), try unchecking "Allow the computer to turn off this device to save power." Sometimes aggressive power saving prevents the adapter from updating its authentication data when reconnecting, creating the illusion of an incorrect password.
Frequently Asked Questions (FAQ)
Will my Wi-Fi password be deleted if I simply rename the network on my router?
No, the laptop will consider this a new network. However, the old profile with the old name (SSID) will remain in the computer's memory. If you return the old name, the laptop will attempt to connect using the saved (now incorrect) password. It's best to delete the profile manually.
Is it possible to remove a Wi-Fi password without administrator rights?
The standard Windows interface (forgetting the network) typically doesn't require administrator rights. However, using the command line (netsh) and completely resetting the network requires administrator rights. Without them, you'll only be able to stop automatically connecting, but your data will remain in the system.
Where is the Wi-Fi password stored in plain text?
Passwords are stored encrypted in the system registry and configuration files. They cannot be found in plain text. You can view the saved password (if it's still valid) in the network properties of the Wi-Fi status window, under the "Security" tab, by checking "Show characters as you type."
Why does my laptop say "Incorrect password" even though I just changed it?
Most likely, the laptop is attempting to connect using an old saved key. You need to delete the network profile (forget the network), as described at the beginning of the article, to force the system to prompt for a new password the next time you connect.