To forget a network of wi-fi on a Mac, you can follow these steps:
Click on the Wi-Fi Icon:
In the menu bar at the top-right corner of your screen, click on the Wi-Fi icon (it looks like a set of concentric bars).
Open Network Preferences:
In the drop-down menu that appears, select “Open Network Preferences.” Alternatively, you can go to “System Preferences” from the Apple menu and then choose “Network.”
In the Network Preferences window, make sure that the left sidebar is set to Wi-Fi. You should see a list of available Wi-Fi networks.
Click on the “Advanced” button in the lower-right corner of the Wi-Fi preferences window.
Choose the Network:
In the “Preferred Networks” tab, you’ll see a list of Wi-Fi networks your Mac has connected to. Select the network you want to forget.
Once you’ve selected the network, click on the minus (“-“) button below the list. This will remove the selected Wi-Fi network from the list.
Confirm: A confirmation dialog will appear asking if you are sure you want to forget the network. Click the “Remove” button to confirm.
Click the “OK” or “Apply” button to save the changes.
Close the Network Preferences window.
By following these steps, you have successfully forgotten the selected Wi-Fi network on your Mac. The next time you are in the range of that network, your Mac won’t automatically connect to it, and you’ll need to re-enter the password if you decide to connect again.