![Apple iPhone 15 Pro Max](http://wmstatic.global.ssl.fastly.net/ml/7041023-f-5e820817-016a-4d33-ac78-1cb78107f041.png?width=150&height=320)
Apple iPhone 15 Pro Max
iOS 17
Turn use of phone lock code on or off
The phone lock code prevents others from accessing the contents of your phone (such as pictures and messages). When the phone lock code is turned on, it needs to be used every time you turn on your phone and when it has been in sleep mode.
1. 1. Find "Face ID & Passcode"
Press Settings.
![](http://wmstatic.global.ssl.fastly.net/ml/7041023-f-f44299dc-4f7a-4300-9782-d4e0bd965755.png?width=212&height=458)
Press Face ID & Passcode.
![](http://wmstatic.global.ssl.fastly.net/ml/7041023-f-528c9a6f-b19b-401d-a478-5c23e4e01507.png?width=212&height=458)
2. 2. Turn on use of phone lock code
Press Turn Passcode On and key in a phone lock code of your own choice twice.
![](http://wmstatic.global.ssl.fastly.net/ml/7041023-f-aa868870-ecbf-4109-b147-926565dcfb9a.png?width=212&height=458)
3. 3. Turn deletion of data on or off
Press the indicator next to "Erase Data" to turn the function on or off.
![](http://wmstatic.global.ssl.fastly.net/ml/7041023-f-521e4bd5-4932-4003-81d6-0465691618fb.png?width=212&height=458)
If you turn on the function, press Enable.
![](http://wmstatic.global.ssl.fastly.net/ml/7041023-f-55d5dbb7-8772-42a5-821f-13a6f5bffb96.png?width=212&height=458)
4. 4. Turn off use of phone lock code
Press Turn Passcode Off and key in the phone lock code.
![](http://wmstatic.global.ssl.fastly.net/ml/7041023-f-8ee38f4e-b671-423c-bc7d-6b31e56acdd8.png?width=212&height=458)
5. 5. Return to the home screen
Slide your finger upwards starting from the bottom of the screen to return to the home screen.
![](http://wmstatic.global.ssl.fastly.net/ml/7041023-f-f0e2b68b-b429-4ccc-ab65-43057fe5e4a7.png?width=212&height=458)