How to remove your device from “Find My iPhone” (iCloud)
Before giving away or selling your iOS device, be sure to erase your content and settings (in Settings > General > Reset > Erase All Content and Settings). When you erase your content, Find My iPhone and Activation Lock are also turned off.
Remove an iOS device or Mac by turning off Find My iPhone
On an iOS device: Go to Settings > iCloud, then tap to turn off “Find My iPhone” or “Find My iPad” etc…
On a Mac: Choose Apple menu > System Preferences, click iCloud, then deselect Find My Mac.
Remove an iOS device or Mac on which you can’t turn off Find My iPhone
If you can’t turn off Find My iPhone on the device, turn off the device so it goes offline, then remove it from “Find My iPhone” on “iCloud.com”.
Turn off the device you want to remove.
Go to Find My iPhone on iCloud.com on another computer.
If you’re using another iCloud app, click the app’s name at the top of the iCloud.com window, then click “Find My iPhone”.
If you don’t see “Find My iPhone” on “iCloud.com”, your account just has access to iCloud web-only features. To gain access to other iCloud features, set up iCloud on your iOS device or Mac.
Click All Devices, select the offline device, then click Remove from Account. If you don’t see Remove from Account, click All Devices again, then click the Delete button next to the device.
If the device comes online again, it reappears in “Find My iPhone”. If your device reappears, turn off “Find My iPhone” on the device (follow the instructions above for removing a device by turning off “Find My iPhone”), or if it’s an iOS device and you no longer have it, follow the instructions below for removing an iOS device you no longer have.
Remove an iOS device you no longer have
If you no longer have the iOS device because you gave it away or sold it, you need to remotely erase it before you can remove it.
Go to Find My iPhone on iCloud.com.
If you don’t see Find My iPhone on iCloud.com, your account just has access to iCloud web-only features. To gain access to other iCloud features, set up iCloud on your iOS device or Mac.
Click All Devices, then select the device.
Click Erase iPhone (iPad, Mac, etc.), then enter your Apple ID password or your family member’s Apple ID password. Because the device isn’t lost, don’t enter a phone number or message.
If the device is offline, the remote erase begins the next time it’s online. You receive an email when the device is erased.
If you erase your iPhone 6 or iPhone 6 Plus and you have credit and debit cards in Wallet for Apple Pay, Find My iPhone attempts to remove your cards immediately, even if your iPhone is offline.
When the device is erased, click “Remove from Account”.
All your content is erased, and someone else can now activate the device.