It's actually pretty simple. You need to remove the stem. Also, loosen the headset. There should be a nut on the top cap. Just loosen that until it comes out.
You have to remove the stem also and take off any spacers. Be careful not to lose any of the bearings if they are the loose kind (in the headset) and if you plan to replace the fork...make sure you remember exactly how the headset goes together. ..... I didn't do this once and put my bearing cups in upside down
2012 Trek Lexa SL
2012 Giant TCX2
2015 Trek Remedy 7
2016 Trek Lexa C
2016 Specialized Hellga-Fat Bike