How to factory reset a Galaxy S7 or S7 Edge

Factory reset is often a useful solution for many types of Android issues. Other than doing it for troubleshooting purposes, some may also want to know how to do it on their Galaxy S7 or S7 edge, especially if they plan on selling or donating the device away. Factory reset will delete all personal data