Unlocking the bootloader will wipe all data on the device (Factory Reset). It also voids the warranty on most devices and can leave the phone vulnerable to security exploits if not handled correctly.
adb reboot bootloader fastboot oem device-info unlock bootloader command free