Stop the hotspot:

netsh wlan show interfaces

If you forgot a Wi-Fi password but the computer remembers it, use this command (replace WiFi-Name with the actual network name):

If a network profile is corrupted or you want to remove access credentials for a specific network: