I've forgotten my PIN for my old phone, how can I recover it?

I've forgotten my PIN for my old phone

I got a new phone, it's all set up. I want to wipe my old i6 and give it to someone else to use, however I've forgotten my six digit code.
Re: I've forgotten my PIN for my old phone

Welcome to iMore! If you've forgotten your passcode and need to reset your phone, this Apple Support article should help: https://support.apple.com/en-us/HT204306
I've forgotten my PIN for my old phone

You'll have to put it in DFU mode and restore through iTunes. You will lose your data, including photos, unless you have a back up to use.

Original thread: https://forums.imore.com/threads/ive-forgotten-my-pin-for-my-old-phone-how-can-i-recover-it.348667/