rebarse

How to remove your Apple Account and turn off Find My before selling your iPhone

Before your old iPhone goes to a new owner, it must be signed out of your Apple Account and fully erased. Otherwise the buyer hits Activation Lock and cannot use it.

Back up the iPhone, unpair your Apple Watch, then go to Settings > [your name] and sign out. Next, open Settings > General > Transfer or Reset iPhone > Erase All Content and Settings. Erasing a phone that had Find My on also removes Activation Lock, so the buyer can set it up as new.