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