To reset iCloud and device settings, go to Settings > General > Reset on your iPhone. From there, you can choose options like "Reset All Settings" or "Erase All Content and Settings" to reset your device.