To sign out of Apple ID (iCloud) on your device, open Settings and go into your Apple ID settings. This will be at the very top of Settings and should show your name and profile picture.
From here, scroll down and find the red “Sign Out” button at the bottom of the screen.
You’ll be prompted for your Apple ID password to confirm— after that, you’re done!