Apple reset or remove account from iPad or iPhone

Apple reset or remove account from iPad or iPhone:
Use these steps to transfer information to your new device, then remove your personal information from your old device.

1- Home ->settings –> General –> Reset

And you must the password of the current ID ( email linked to iCloud) to do so.
Apple reset or remove account from iPad or iPhone