Removing e-brake cables from G2

I need to pull the e-brake cables out of a car im pulling apart. How do I remove them from the interior? Do I just pull the carpet up and disconnect them from the e-brake handle? I unbolted that little panel at the back where the cable go through into the car.

Little help!