To turn off the password on an Android phone or tablet, start the Settings app and go to the Lock Screen controls page.
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 iTunes instead.