How to Factory Reset a Phone When I Forget Unlock Password or Pattern

The only option to unlock your device after forgetting unlock pattern or losing pin is to perform a factory reset.