When you decide to pass on your spare iPhone to a friend or family member, it's essential to ensure that your personal data is completely removed, and the device is restored to its factory settings. What if you have no credentials for the registered Apple ID? Here's the answer.
Summary: If you want to securely erase information from your iPhone and restore your device to factory settings, you'll be asked to enter your Apple ID passcode.