Open the Settings app on your device
Tap your name at the top
Scroll down and tap Sign Out
Enter your Apple ID password if prompted
Choose the data you want to keep on the device
Tap Sign Out again to confirm
Enter your device passcode if prompted
Confirm the sign-out process
On a Mac, open System Settings
Click your Apple ID
Click Sign Out
Follow the prompts to keep or remove data
On the web, go to iCloud.com
Sign in with your Apple ID
Click your account name or profile icon
Select Sign Out
