You have to remove the left suspension, so leave the left driveshaft attached the the suspension and take the driveshaft and suspension out together. The shaft splines will just pull out of the gearbox. You don't need to disturb the CV joint or the inner tripod joint.
You don't need to touch the right driveshaft, it's held in position by it's centre bearing. When you separate the gearbox from the engine, the driveshaft splined end will stay there as in the picture below.
.
You don't need to touch the right driveshaft, it's held in position by it's centre bearing. When you separate the gearbox from the engine, the driveshaft splined end will stay there as in the picture below.
.