What to do before you sell or give away your iPhone: back up, sign out, erase

Follow this order before handing the phone over so none of your data stays on it and the buyer can set it up right away.
1. Back up and transfer your data
Create a backup first. On iOS 11 or later, use Quick Start to move your data to the new phone. If your phone number is changing, add other trusted phone numbers to your account.
2. Check Parts and Service History
Look at Parts and Service History; if a part shows “Finish Repair”, Apple advises completing that repair before trading the device in.
3. Unpair and sign out
Unpair your Apple Watch if you have one, and cancel your AppleCare plan or transfer it to the new owner. Then open Settings, tap your name, scroll down and tap Sign Out.
4. Erase all content
Go to Settings > General > Transfer or Reset iPhone > Erase All Content and Settings. Then remove the phone from your trusted devices list, and deregister iMessage if you are switching to a non-Apple phone.
Sources: support.apple.com/en-us/109511


