Open the navigation bar and then click on the Passcode icon.
To remove the passcode, click on the cross mark at the top of the screen.
To remove the passcode, you will have to first enter the passcode. Then click on remove. If you have a fingerprint sensor on your phone then, you can approve the removal from the fingerprint sensor.