Switch off and remove the battery, unplug the motor cable at its connector, note the order of the washers, then undo the axle nuts. Refit in reverse and tighten firmly.
A rear hub motor: the motor fills the wheel's hub, and its cable leaves at the axle. Photo: Ken962, CC BY-SA 3.0, via Wikimedia Commons (resized)
A hub-motor wheel has its motor inside the hub, so it's heavier than a normal wheel and has a cable coming out of the axle. It's held by axle nuts rather than a quick-release, and many have a torque arm or special washers that stop the axle turning in the frame. Getting these back in the right order matters.
Video by Park Tool, who isn't connected to Kazolt. It may show a regular bike: on an e-bike, switch off and remove the battery first, and unplug the motor cable before taking off a hub-motor wheel.
Step-by-step checklist
Work from the top. Steps go from free and easy to shop jobs. Switch the bike off before touching any connector. Tick each step as you go. Your progress is saved on this device.
Parts you might need
As an Amazon Associate I earn from qualifying purchases. These links go straight to Amazon.
Only buy a part if the free steps didn't fix it. Always match the voltage and connector type to your bike.
Bike multi-tool or hex key set
Fits nearly every bolt on a bike. Useful for almost every guide here.
When it's time for a shop: if you've worked through every step and the problem is still there, take the bike to an e-bike shop. Bring your notes on when it happens, plus the code.