If you forgot your iPhone’s passcode, reset your iPhone by connecting it to your computer and using iTunes to restore it to factory settings. You can then immediately re-sync your media, contacts and apps, though you may lose some of your data. You must reset your iPhone using the computer with which it was last synced: this prevents your iPhone from being reset if it is stolen. Warnings Writer Bio

How to Reset an iPhone Passcode With a Computer - 39