Certain debts can be resolved with bankruptcy, while others are not dischargeable. Chapter 7 bankruptcy can resolve debt such as medical bills, credit card debt, personal loans, payday loans, and certain tax debts. However, Chapter 7 bankruptcy is not a solution for student loans, back child support or alimony, fines or penalties to government agencies, and HOA fees, among others.
Chapter 13 bankruptcy can discharge debts such as credit card debt, medical bills, utility bills, older back taxes, student loan debt, post-petition HOA fees, property damage, some divorce settlement debts, and more. You may also be able to resolve debt that was not discharged in a prior bankruptcy case. However, debts such as outstanding alimony payments, back child support, and mortgages cannot be resolved with Chapter 13 bankruptcy. That said, it is not guaranteed that all of these debts will be discharged.
When you consult a bankruptcy attorney, they will be able to explain which of your debts you may be able to discharge with a bankruptcy. Keep in mind that you still may be eligible to file for bankruptcy even if you do not have legal immigration status!