How can I erase all in my iphone 4s

I bought a iPhone 6 and now my iPhone 4s is disconnected from internet. I need to erase/reset the 4s but cannot because I have no internet on the 4s. It is disconnected. How do I reset the iPhone 4s so all things on the phone are erased.
Thanks for your help.
Connect to wifi then go to settings > general > reset > erase all content & settings

Original thread: https://forums.imore.com/threads/how-can-i-erase-all-in-my-iphone-4s.309483/