Whether or not you can strip off your home’s second mortgage in bankruptcy used to be any easy answer to arrive at. If your home was worth less than the balance of the first mortgage, you could strip off any junior mortgage. Historically, this relief was available in Chapter 13 bankruptcies only (see my Chapter 13 web page here: Chapter 13 Bankruptcy).
If you cannot pay your HELOC, the bank CAN foreclose on your home. See our blog posts on foreclosure, here: https://www.miamibankruptcy.net/blog/foreclosure
HELOC means Home Equity Line Of Credit, and it is basically the same as a mortgage. In exchange for the money borrowed, the homeowner gives the lender a mortgage lien. If the money is not repaid, the lender can foreclose and sell the home.