To make access easier it is best to also remove the rear wheel at this point. Also get the mud flap out of the way. Don't use a paddock stand to jack up the bike, use a centre stand if you have it, otherwise use an abba stand or put a strong box underneath the engine.
Loosen the top bolt and nut. The nut can be a bit tricky to get a good hold of. As you can see in the picture below the L-part on the frame that holds the bolt has very little clearance to get a wrench nicely around the nut.
But with some care it will come off.
Then do the same at the bottom of the shock.
And out comes the original shock.