Simply learn yourself.
For iphone-icloud

How to deactivate an iCloud Account

Deactivating Icloud Account.

iCloud account effectively back up data from your Ipad, Iphone, Ipod and Macbook. By using iCloud services you can access data from any IOS device at any place. If you wish not to use iCloud service to access data via Internet, you can deactivate it. Following are the simple steps that are required to be followed while deactivating iCloud account.

Step 1: Navigate to your iOS device's Home screen and tap on Settings.

Step 2: Gently tap on ‘iCloud’ scroll down to the end of iCloud menu and then tap "Manage Storage".

Step3: Scroll down to the verify bottom of the iCloud screen and tap on “Delete Account” option. iCloud is now turned off and disabled on your iOS device. After deactivating iCloud account your personal data will not be stored on IOS device.

Step4: You can repeat the above mentioned steps to activate iCloud account in future.
iCloud helps to store data such as documents, photos, and contacts across various IOS devices. IOS users can delete their personal data using iCloud account in case their device is lost or stolen.