How to force a factory reset or hard reset on Samsung devices

Samsung Galaxy J1 mini prime Samsung Galaxy J1 mini prime
Samsung Galaxy Tab S3 9.7 Samsung Galaxy Tab S3 9.7
Samsung Galaxy Xcover 4 Samsung Galaxy Xcover 4
Samsung Galaxy C5 Pro Samsung Galaxy C5 Pro
Samsung Galaxy S8+ Samsung Galaxy S8+
Samsung Galaxy S8 Samsung Galaxy S8
Samsung Galaxy J3 (2017) Samsung Galaxy J3 (2017)
Samsung Galaxy J5 (2017) Samsung Galaxy J5 (2017)
Samsung Galaxy J7 (2017) Samsung Galaxy J7 (2017)
Samsung Galaxy J7 Pro Samsung Galaxy J7 Pro
Samsung Galaxy J7 Max Samsung Galaxy J7 Max