That can be done in Settings - General - Passcode Lock.
Got it.ThanksTap Passcode Lock, in spite of the 4 hours, then you get to the next screen. At the top you'll see "Turn Passcode Off". Tap it, a popup appears, you have to enter your passcode once more, and then it should be disabled.