Hard Reset LG G4 - factory reset by hardware buttons
Hard Reset LG K10 - Remove Pattern and Password Lock in LG K10
How to Hard Reset LG K10 - How to Wipe All Data in LG
Hard Reset LG G4 - Android factory reset tutorial
Hard Reset will erase all of your data
All described operations you are doing at your own risk.