If you want to reset your iPhone 12 Pro Max, you can do so by going to Settings > General > Reset and then select Erase All Content and Settings. This will erase all of your data and settings, including your passcode.