If the device is NOT protected with the iCloud Activation Lock, then all you have to do is out the device in DFU or Recovery mode and select Restore via iTunes. If the device is protected with the iCloud Activation Lock, you will have to recall the associated Apple ID and Passcode in order to reset it. If not, nothing can be done about it.