Well, I don't remember what year bike you have, and I think the pre '81 model year it may be a different procedure, but here it is for the 'cush driveshaft'.
You need to remove the swingarm from the bike.
Then remove the swingarm from the final drive, remove the 4-12 point nuts.
You need a fixture similar to the spring compression tool used to dis-assemble McPherson struts in cages.
I think I've seen homemade tools that were just 2 plates of steel, and 2 threaded rods with nuts.
You have to compress the spring in the drive shaft to get to a wire circlip, I believe it's at the end that mates to the final drive.
After you get the circlip out , relax the pressure on the driveshaft, by loosening the nuts, and it should come right out.