When you get the factory service part, it comes complete (master clinder, line, slave clinder) and bled.
On the bottom of the master cylinder there should be a clip or roll pin that holds the line running down to the slave cylinder into the master cylinder. Removing that should allow you to pull the line out.
The big trouble is going to be bleeding the system, there is no bleeder on the slave cylinder. You may be able to take it off, and push it all the way in to expel the air back into the master, but it's going to be tough. I've tried bleeding them before with limited success.
I'd be tempted to get the OEM part, for a diesel they run ~$260. Probably quite a bit more money than the aftermarket part, but a lot easier to install. If you let me know what engine you have I can get you a more accurate price.
I hope this helps, if so please click accept. Need more info? Just ask!