Things You'll Need
Instructions
Observe the current shift cable and make a note of its routing from the shifter lever on the handlebars to the derailleur on the rear wheel, as this may help you install a new cable more easily in the future.
Move the shift lever to the highest gear, which reduces the pressure on the cable.
Locate the two pinch bolts on the derailleur on the rear wheel that hold the shift cable into place. Loosen, but do not remove, the bolts with a hex wrench or a Phillips screwdriver, depending of what brand of derailleur your bike uses.
Pull the cable out of the derailleur. Locate the head of the cable on the underside of the handlebar shifter. Pull the cable straight out of the shifter. Continue to pull the cable out until the entire length of the shift cable is clear of the bike.
Save the cable for comparison purposes when purchasing a replacement cable.