To turn off the passcode of an iPhone, you have to select Face ID and Passcode (or Touch ID and Passcode) in the settings and enter your existing password, select Turn Passcode Off and confirm it.
To turn off the passcode on an iPhone, open Settings, tap Face ID & Passcode or Touch ID & Passcode, and enter your current passcode. Scroll down and select Turn Passcode Off. Confirm your choice. This removes the passcode, but it may reduce your device’s security.
On an iPhone, you can disable the passcode by going to Settings > Face ID & Passcode (or Touch ID & Passcode), entering your current passcode, scrolling down, tapping Turn Passcode Off, and confirming your selection.