Modern iPhones encrypt storage, so Erase All Content and Settings destroys the key and makes old data unrecoverable within seconds. The risks are mostly in what's left around the phone.
Checklist
- Back up the phone, and confirm your vault's encrypted backup is up to date.
- Sign out of iCloud: Settings → [your name] → Sign Out. This also turns off Find My.
- Settings → General → Transfer or Reset iPhone → Erase All Content and Settings.
- Remove the SIM or delete the eSIM.
- On another device, remove the old iPhone from your Apple account's device list.
Don't forget
Shared albums you created, photos you've sent in messages, and other devices still synced to iCloud Photos aren't affected by erasing one phone.
Try Veilbox free
Encrypted on your iPhone. No account required.