I did this modification before our last trip out. I had some trouble with the bed, it probably took longer to get the bed off than anything else with the project. I took a couple photos, maybe it will help the next guy.
Step 1 - The bed itself has 4 Trox (25) screws and 4 bolts (I forget the size). You do NOT need to remove the Torx screws, they only hold the rails to the bed.
Step 2 - Remove 4 bolts from the rear of the bed. These are different lengths, keep track of all the bolts.
Step 3 - Remove 2 screws from each wheel well.
Step 4 - Remove 3 Screws from the fender flair area.
Step 5 - Remove 4 Bolts/Screws from behind the rear seats.
Step 6 - Disconnect the wire for the tail lights (I missed this). It is located on the driver side, right at the roll bar.
Step 7 - Get help if you can. Wiggle the whole thing off the rear of the RZR. I was able to do it by myself, but the fenders kept getting caught.
Here is the underside with the bars in place. They will be attached to the bed if you leave in the first 2 Torx Screws. Check out the nice factory heat shield
I found a nice soft place to put it upside down, I didn't want to risk breaking off the fender flairs.
Good Luck. I hope you marked all the bolt/screw locations.