It comes out no problem. Just give it a little pull and the entire driveshaft should pop straight out. A circlip on the end of the axle stub is the only thing holding it in.
Would be a good idea to replace the rubber axle seal on the gearbox end when you put the new/rebuilt shaft back in. Common for them to leak when disturbed.
The gearbox fluid will also come out with the shaft so be prepared for 3-4 litres to come gushing out.