"except for network settings". You can't delete your Wi-Fi details, even with a factory reset. I tried to add a second network (hotspot) then disable that network, but it just reconnected to the old one.
I gave up and added a MAC address block on my router.