Hi.
The front wheel does not need removing.
All that’s required is:
1 make sure the bike is on the centre stand.
2 remove the black plastic cover on the right side slider tube top.
3 there is a ni-lock nut under this cover this needs to be undone--under the yolk you will see what looks like a nut, this is to put a spanner on to hold the slider for releasing and re-tightening the nut that’s under the cover.
4 once the nut has been removed with a little effort you will be able to push the slider down the fork leg and get enough clearance to re-position the brake line.
5 reverse procedure to refit.
Hope this helps