How to log out on all things
I logged in on my iCloud on somebody else computer and I forgot to log out and I need to sign out. Somebody help and I’m not around the computer and neither is the person
If it's a Mac, then System Preferences > iCloud > Sign Out.
Sign out of iCloud on your iPhone, iPad, iPod touch, Apple TV, or Mac - Apple Support
How to log out on all things