WARNING: This page is about a different car, the 2005 Subaru Forester. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect the ground cable from battery.
Disconnect the connector.
Remove the nuts which securing accelerator pedal assembly.
Fig 1: Removing Accelerator Pedal Assembly And Nut