Hi, welcome to justanswer.com! My name is Mike.I am going over your question and I will be with you shortly.
Go to Settings / General / Reset and select Erase All Content and Settings, you will need the Apple ID password ***** / or the security code of the previous owner.
If you are satisfied, please kindly provide an OK or Above Rating - so I get paid. Keep in mind you can always come back to this page at any time regarding this question. Thanks!!