This is done by going to Settings --> Backup and Reset --> Factory Reset This will not trip the FRP.
open