This wikiHow teaches you how to switch the iCloud account linked to your Apple device to a different account.
Step
Method 1 of 3: Via iPhone or iPad

Step 1. Open device settings (Settings)
The settings menu is marked with a gray gear icon (⚙️) which is usually displayed on the home screen.
If you want to change iCloud account on used iPhone and iPad, click this link

Step 2. Touch your Apple ID
The Apple ID appears at the top of the screen and contains your name and photo (if you've already uploaded one).
If you're running an earlier version of iOS, tap the iCloud option

Step 3. Scroll down and select Sign Out
This option is the last option on the "iCloud" menu.

Step 4. Enter the account password
Type the password that matches your Apple ID into the dialog box.

Step 5. Select Turn Off
It's at the bottom of the dialog box. After that, the “Find My iPhone” feature on the device connected to the iCloud account will be disabled.

Step 6. Select the data you want to keep on the device
To select an old copy of iCloud data on a device (e.g. contacts), slide the switch next to the appropriate app to the on position (marked with a change to green).
To delete all iCloud data from your device, make sure that all buttons are in the off position (marked in white)

Step 7. Select Sign Out
It's in the upper-right corner of the screen.

Step 8. Select Sign Out
By selecting Sign Out, you confirm your choice to sign out of the iCloud account that the device is currently connected to.

Step 9. Open device settings (Settings)
The settings menu is marked with a gray gear icon (⚙️) which is usually displayed on the home screen.

Step 10. Select Sign in to your (your device name)
It's at the top of the menu.
- If you want to create a new Apple ID, select “Don't have an Apple ID or forgot it?” (displayed below the onscreen password field), and follow the rest of the onscreen prompts to create an Apple ID and iCloud account for free.
- If you're running an earlier version of iOS, select iCloud.

Step 11. Enter your Apple ID and password

Step 12. Select Sign In
It's in the upper-right corner of the screen.
The screen will dim and display the message " Signing into iCloud ", while the ID accesses data during the login process

Step 13. Enter the device passcode
This lock code is the code you set when setting up your device.

Step 14. Copy data from device
If you copied calendar information, reminders, contacts, notes, and other data on your device to your iCloud account, select “Merge”; otherwise, select “Don't Merge”.

Step 15. Select iCloud
This option is in the second section of the menu.

Step 16. Decide what kind of data you want to store in iCloud
In the " APPS USING ICLOUD " section, slide the switch for each data type to the on (green) or off (white) position.
- The selected data will be available on iCloud and other devices connected to the same iCloud account.
- Swipe to see a complete list of apps that can access iCloud.
Method 2 of 3: Via Mac Computer

Step 1. Click the Apple menu
This menu is indicated by a black apple-shaped icon in the upper-left corner of the screen.

Step 2. Click System Preferences
It's in the second part of the drop-down menu.

Step 3. Click iCloud
It's on the left side of the "System Preferences" window.

Step 4. Click Sign Out
It's in the lower-left corner of the iCloud menu window.
- All iCloud data, including calendar entries and iCloud photos, will be deleted from the computer.
- If you get an error message when you try to sign out of your account, the error may be due to a conflict with your iPhone or another iOS device connected to the account. Open the settings menu on the device, select your Apple ID, then select “iCloud”. After that, select “Keychain” and slide the “iCloud Keychain” switch to the on position (green).

Step 5. Click the Apple menu
This menu is indicated by a black apple-shaped icon in the upper-left corner of the screen.

Step 6. Click System Preferences
It's in the second part of the drop-down menu.

Step 7. Click iCloud
It's on the left side of the "System Preferences" window.

Step 8. Select Sign In
It's at the top of the dialog box.
If you want to create a new Apple ID, click the “Create Apple ID…” link below the Apple ID field on the screen. After that, follow the next on-screen instructions to create an Apple ID and iCloud account for free

Step 9. Enter the Apple ID and password
You will need to enter the email address and password that will later be associated with your Apple ID in the appropriate fields on the right side of the dialog box.

Step 10. Click Sign In
It's in the lower-right corner of the dialog box.

Step 11. Allow iCloud preferences to make changes to the device
To grant permission, enter the computer administrator's name and password.
If prompted, enter the lock code of the other device. This prompt appears if you have enabled the two-step verification method

Step 12. Define sync preferences
Checkmark at the top of the dialog box if you want to copy calendar entries, reminders, contacts, notes, and other data on your device to your iCloud account. Check the selection at the bottom of the dialog box so that your computer can be found if your computer is lost or stolen at any time.

Step 13. Click Next
It's in the lower-right corner of the dialog box.
Click “Allow” to enable Mac location services to be used by the “Find My Mac” feature

Step 14. Check the box next to the “iCloud Drive” label
You need to check it if you want to store files and documents in iCloud.
Select the applications that are allowed to access iCloud Drive by clicking the “Options” button next to the “iCloud Drive” label in the dialog box that appears

Step 15. Select the type of data you want to sync with iCloud
Step 1. Contact the previous owner of the device
If you bought a used iPhone from someone and their iCloud account is still connected to the device, you will need to contact them to remove the iPhone from their account. There is no other way to remove the account from the device. Even after you restore the default settings, you will still be asked to enter the login information for the account.

Step 2. Ask the previous owner to sign in to the iCloud website
The previous owner could easily delete the iPhone you purchased from their account via the iCloud website. Ask him to visit icloud.com with the account linked to your device.

Step 3. Navigate it to click the “Settings” button on the iCloud website
After that, the account's iCloud settings page will be displayed.

Step 4. Have him click on his old iPhone from the list of devices shown
After that, a new window with the details of his old iPhone will be displayed.

Step 5. Ask him to click on the "X" button next to his old iPhone's name
After that, the iPhone will be deleted from the account so you can sign in using your own iCloud account.