Template:Ninebot ESX Front Motor Disassembly - Motor Bolts
The motor bolts require a fair bit of force to remove.
Use an 18mm fixed wrench (metric) to remove them.
Once removed feed enough of the motor cable out to pull the motor away from the fork.