You can turn off specific iCloud features, or iCloud as a whole, on most Apple devices and on a Windows computer.
You can factory reset your iPhone and wipe all its data in the Settings app. If you don't remember your password, you can use ...