There are several methods to delete a hosted network.
Method 1 : Network and Sharing Center
Right click on the Network icon in the notification area () and choose "Network and Sharing Center".
In the Network and Sharing Center windows, click on "Change Adapter settings", to see all of your network connections. This will look like:
Select the Hosted Network and press the Delete button, then restart your PC.
Method 2 : Command-line to delete the virtual adapter
Open the Command Prompt with Administrator rights and enter the following command:
netsh wlan stop hostednetwork
You will receive a message confirming that the wireless hosted network stopped. However it is not yet disabled. In order to disable it, enter this command:
netsh wlan set hostednetwork mode=disallow
The result is the message "The hosted network mode has been set to disallow". You'll also notice that the virtual adapter is no longer listed in the Network and Sharing Center.
Furthermore, if you want to double-check the status of the hosted network, you can run the following command:
netsh wlan show settings
It should say : "Hosted network mode allowed in WLAN service: No".
Method 3 : Command-line to delete/forget one network
Start the Command Prompt as administrator and type the following command :
netsh wlan show profiles
It will display all the wireless network profiles stored by Windows 8.1. The list can be long if you used your laptop or tablet for more than a couple of weeks :
Identify the name of the wireless network profile you want removed, then type the following command to remove it:
netsh wlan delete profile name="swisscom"
Method 4 : Command-line to delete/forget all networks
In some scenarios you may need to remove all the wireless network profiles stored in Windows 8.1. This is done using this command:
netsh wlan delete profile name=* i=*