Forget a Wi-Fi network on Windows with netsh

Remove a saved wireless profile so Windows stops auto-connecting to a network, using netsh wlan delete profile.

WindowswlannetshcmdWi-FiMedium risk
Run `netsh wlan delete profile name="NetworkName"` (replace with the actual network name) to forget that Wi-Fi network immediately.

01Command

Command
$ netsh wlan delete profile name="CoffeeShopWiFi"

02What it does

Windows remembers every Wi-Fi network you join and reconnects automatically. The `netsh wlan delete profile` command deletes one saved profile by name, without affecting other networks. List saved profiles first with `netsh wlan show profiles` if you are not sure of the exact name.

03Risk

RiskMedium risk
!Warning: Forgetting the network also deletes its saved password. You will need to re-enter it to connect again.

04Undo

Undo
$ netsh wlan add profile filename="C:\path\to\profile.xml" user=current

05Sources

  • netsh
    Microsoft Learn · vendor-doc · 2026-09-17
    Evidence: Documents netsh WLAN commands including `netsh wlan show profile name=... key=clear` and `netsh wlan delete profile name=...`.
  • Netsh commands - Windows CMD
    SS64 · technical · 2026-09-17
    Evidence: Reference for netsh context commands such as wlan delete profile and winhttp proxy.

Last verified: 2026-09-18 · Category: Network

06Related solutions