iOS 16 public beta

I am currently using iOS 16 public beta which is going fine but for some reasons I want to factory reset my iphone and remove all data.  How to complete reset it safely and will this affect my iOS 16 public beta OR should I leave it as it is untill the original iOS 16 is out. 

PS: I don't want to go back to iOS 15 but want to reset using iOS16 public beta.

iOS 16 public beta
 
 
Q