If you simply forgot your PIN or pattern, a hard reset will wipe the device and remove the lock. This will erase all your data. Power off your device completely.