How to erase/reset my iphone 6S when I got locked out and I don't know the password?

How to erase/reset my iphone 6S when I got locked out and I don't know the password?

Added (1). I have deleted the device from my icloud and find my iphone accounts. I have pressed the home and lock buttons to reset and have also held it to where the phone goes to the recovery setting, but every time I plug it in it gets halfway through updating and then the phone screen goes back to being disabled for 15 minutes and my itunes asks me to unlock my phone usinggm password to gain access. I have redone reset to the recovery screen over 5 times and their is no progress

Take it to an Apple store. They did this for me on the 4Smy daughter gave me.

You don't need to take it to an Apple store.

Put the iPhone in DFU mode and restore in iTunes. It looks like you know about Recovery mode, but just keep in mind that DFU mode and Recovery Mode are NOT the same. ITunes will tell you that your iPhone is in Recovery mode, but if you follow the steps correctly, you'll be in DFU mode.

DFU instructions: https://www.theiphonewiki.com/wiki/DFU_Mode#Entering_DFU_Mode_on_iPhone.2C_iPad_or_iPod_touch