how to reset your phone password
how to reset your iphone password
iPhone XS, iOS 14
Apple Intelligence is now available on iPhone, iPad, and Mac!
how to reset your iphone password
iPhone XS, iOS 14
The other two replies are correct to “reset” a device to which you don’t know the passcode … which is what you asked.
However, if what you really meant to ask is how to “change” your passcode (i.e. you’ve not forgotten it) … use the following:
https://support.apple.com/en-au/guide/iphone/iph14a867ae/ios
how to reset your phone password