Hello mahroo129,
Welcome to Apple Support Communities.
We understand that you erased all content form your phone when you forgot the passcode and want to know if you can recover your photos. We are happy to help.
Do you recall if you had a recent backup? If so, please use the steps here to locate backups: Locate backups of your iPhone, iPad, and iPod touch - Apple Support
"Find backups stored on your Mac or PC
To avoid ruining any of your backup files, here's what you should know:
- The Finder and iTunes save backups to a Backup folder. The location of the Backup folder varies by operating system. Though you can copy the Backup folder, you should never move it to a different folder, external drive, or network drive.
- Don't edit, relocate, rename, or extract content from your backup files. For example, to restore from a relocated backup file, you need to move the backup file back to where it was in the Backup folder or the file won't work. Backups serve as a safe copy of almost all of your device's data and settings. So while you might be able to view or access a backup file's contents, the contents usually aren't stored in a format that you can read."
Do you use iCloud Photos? If so, please try to recover your photos using these steps: Delete and recover photos and videos on iCloud.com - Apple Support
"Recover photos and videos
- In Photos on iCloud.com, click the Recently Deleted album in the sidebar.
If you don’t see the sidebar, click
.
2. Select the photos or videos you want to recover, then click Recover."
These steps may resolve your concerns. Let us know if you have further questions.
Take care.