Piece of piss mate.As long as you can get the clips from the throttle bracket on plenum to let go.

.
Hard way.
Disconnect clip on throttle body in engine bay first.Make sure you be careful as this will spring once you lever it off and fly anywhere
This will then loosen tension on pedal.Then unclip pedal.
Then lever/pull out metal clip holding cable in plenum bracket and try and get the cable out of bracket.
Then refitting is a reversal of removal.
EASY way.
Unclip off throttle bady as above.
Cut cable with wire cutters.
Unclip from pedal.
pull out metal clip as above.
Snap off the 4 plastic clips holding the cable in bracket.
Bin cable.
refit new cable.