Windows 11:
- Open Settings by clicking the Start Menu > Settings
- Click on Network & Internet
- Click Manage known networks 
- Click the Forget button for the network you want to forget 
macOS (14+):
- Click on the Apple menu  > System Settings
- Click Network in the sidebar
- Click the menu button (•••) next to the network you want to forget 
- Click Forget This Network... 
