Before you sell or give away your device, you should remove your personal information. See below how to remove all personal data from your device before you sell it with Mobile Monster. Please be aware factory resetting your device does not automatically remove your accounts or PINs such as iCloud, Google, Samsung and lock screen PINS. You must log out before resetting.
You shouldn't manually delete your contacts, calendars, reminders, documents, photos, or any other iCloud information while you're signed in to iCloud with your Apple ID. This would delete your content from the iCloud servers and any of your devices signed in to iCloud.
On your device with iOS 10 or later, make sure that you sign out of iCloud before you erase your device.
Follow these steps:
When you erase your iPhone, iPad, or iPod touch, Find My iPhone and Activation Lock is turned off.
Each Android device has a similar process for erasing the phone and removing all personal data.