How to Factory Reset HTC Desire 825 - Restoring Factory Settings in HTC
How to Remove Pattern Lock in HTC Desire 825 - Hard Reset Solution in HTC
Hard Reset HTC Desire 825 - REMOVE PATTERN and PASSWORD
Hard Reset will erase all of your data
All described operations you are doing at your own risk.