WARNING: This page is about a different car, the 2007 Subaru Outback. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect the ground cable from the battery.
Disconnect the connector.
Remove the nut securing accelerator pedal assembly.