Apple's website provides instructions on how to reset a forgotten iPhone passcode. The steps include connecting the iPhone to iTunes and selecting "Restore" which will reset the device to factory settings and remove all data. All content on the device will be deleted and the user will need to set up the iPhone as new after the reset is complete.