It clips into a bracket near the carb,the connection at the carb is usually just a snap on ball stud thing you pry off--then you push the tabs on the cable where it goes thru the bracket on the intake inwards and pull it out of the bracket-,
At the gas pedal,there is a plastic grommet the cable goes thru,you pop that out of the linkage and then you can take the cable out,there is a slot in the linkage it has to pass thru..it's not a real difficult job..