If you can't get into your iphone how do you factory reset?

If you can't get into your iphone how do you factory reset?

Put it in DFU mode and restore it in iTunes. This of course will erase everything off of your phone. If you have Find my iPhone enabled, you will need to enter your iCloud account info when you're going through the setup process on the newly restored phone.