How to 'factory data reset?

Go under settings, backup & reset, and from there you can select the FDR Option.