Here’s how you turn off iCloud.

Open “Settings” on your device.
Select “iCloud” in the Settings menu.
If Find My iPhone is ON, tap the slider to turn it OFF.
If you are prompted to for a password, enter your iCloud password and tap “Turn Off” to confirm.

That’s it!