Bought an iPhone from someone want to wipe it but not update.

I just bought an iPhone 6s that has 10.2 on it. It is tested and works fine. I want to delete his information off it and put mine on it, but I do not want to update so that I can jailbreak. Any advice? I am new here and searched through the forums but did not find my answer. Sorry if this has already been addressed.