WARNING: This page is about a different car, the 2003 Subaru Impreza. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect the ground terminal from battery.
Remove the mounting bolts, and then detach the fog light assembly.