Remove the wheels, hubs,sprocket, chain, brake caliper and brake hub. Take the carrier off the bike with the axle in it. Put the carrier in a vice and knock the axle out by hitting the brake caliper side of the axle. Don't damage the axle splines or threads by hitting them directly with a
(use a block of wood as protection).
If it wont tap out, you should use a press. If you do not have access to a press, You could soak in some lubricant between the axle and bearings to free up any rusted parts and try again. I recommend that you repace the bearings after doing this because if you are not careful you can shock load the bearings when you tap out the axle.
This has been my experience, I take no responsibility for your actions
My toys 85 KXT250A2, 85 ATC250R, 85 Tri-z 250, 06 LT-R450, 04 YFZ450S, 07 125 typhoon x 3, 06 FPV GT.