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

Motorola Moto E4 Plus Motorola Moto E4 Plus