First, disconnect the cable from the Foot pedal by pushing it up to get it off. Then just unbolt the 8mm bolts on the engine side of the firewall, and pull it out that way.
there is a little square plug on the firewall side. You have to squeeze it from the inside and push it through the sheet metal. And again, disconnect it from the pedal first