Navigate to Factory data reset and press Power to confirm.
Open Settings → Tap General management . How to Hard Reset SAMSUNG Galaxy M62
Tap Reset → Select Factory data reset . Navigate to Factory data reset and press Power to confirm
Release Volume Up once the Android Recovery menu appears (blue screen with yellow text). enter your PIN
Once complete, Reboot system now will be highlighted. Press the Power button.
If prompted, enter your PIN, password, or pattern.