Clearing info from S7

How do you clear personal info and setting from an S7? I purchased one, and transferred all my data, now I am sending it back. Can someone tell me how to clear all back to factory settings, so i can safely send it back to Samsung? Thank you.

Factory reset the phone in Setting, Backup and Reset:

Message an
Expert customer