Removing existing network configurations before connecting