Checkout this video:
Open Settings on your iPhone
Go to Settings, and then scroll down to iCloud.
Tap on the iCloud entry in Settings. This brings up the iCloud preferences pane.
At the iCloud preferences pane, scroll down to the bottom and tap on the Delete Account button.
You will be asked to confirm that you want to delete the account. Tap on the red Delete button to confirm.
Scroll down and tap on iTunes & App Store
Enter your password when prompted and then scroll down to the bottom of the next screen. Underneath the section labeled Subscriptions, tap on the Manage button.
On the next screen, select apple id subscription and tap on the Cancel Subscription button. You’ll be asked to confirm your decision—tap on Confirm to complete the process.
Tap on your Apple ID
When you first set up your iPhone, you’re asked to enter your Apple ID. This is the account that you use to access all Apple services, including the App Store, iCloud, iMessage, FaceTime, and more.
If you want to sell your iPhone or give it to someone, you’ll need to remove your Apple ID from it first. If you don’t do this, the new owner will have access to all of your personal information and data.
Here’s how to remove your Apple ID from your iPhone:
1. Tap on Settings.
2. Tap on iTunes & App Store.
3. Tap on your Apple ID at the top of the screen.
4. Tap on Sign Out.
5. Enter your password and tap Sign Out again to confirm.
Tap on View Apple ID
Assuming you want to remove your own Apple ID, and not someone else’s, tap on View Apple ID. You might need to enter your password use touch id at this point, depending on your security settings.
Tap on Remove This Device
If you want to remove your Apple ID from your iPhone, there are a few different ways you can do it. You can go into the Settings app and tap on “iCloud,” then scroll down and tap on “Delete Account.” You can also go into the iTunes & App Store section of the Settings app and tap on your Apple ID, then tap on “View Apple ID” and tap on “Delete Account.”
If you want to remove your Apple ID from your iPhone but keep all of your data, you can sign out of your Apple ID by going to the Settings app and tapping on “iCloud.” Scroll down and tap on “Sign Out.” You can also go to the iTunes & App Store section of the Settings app and tap on your Apple ID, then tap on “Sign Out.”