WARNING: This page is about a different car, the 2016 Hyundai Elantra GT and 2015 Hyundai Elantra GT. However, it is still accessible from the selected car via links, so may be relevant.
Disconnect the battery negative (-) cable.
Disconnect the battery sensor connector (A).
Remove the battery negative (-) cable after removing the bolt (B).