Delete Wi-Fi Networks in Windows from the Command Line

Microsoft has removed the ability to delete Wi-Fi networks from the network list if the network isn’t in range. Manage Wireless Networks is also gone from the control panel. If you want to better manage Wi-Fi networks in Windows 8 / 10, you’ll need to head to the command line.

Forget this network doesn’t appear if the network is not in range. To delete old profiles, you’ll need to use the netsh command line utility.

To see stored wireless profiles, type:
netsh wlan show profiles
This will show a list of saved profiles of your connected WLAN devices. Then you’ll need to write/save/memorize the profile name that you want to change.

To see the stored key (WPA/WEP/etc) of a specific profile:
netsh wlan show profiles name=[profile name] key=clear
You’ll find the key content under security settings.

To delete a stored profile:
netsh wlan delete profile name=[profile name]
This will delete the stored profile of every WLAN interface.

If you want to delete the profile of a specific WLAN interface, you need to use the following:
netsh wlan delete profile name=[profile name] interface=[interface name]

To set network priority
netsh wlan set profileorder name=”network_name” interface=”interface_name” priority