Bankruptcy is an effective solution for dealing with payday loans and credit card debt, because both are types of unsecured debt. In Chapter 7, you can discharge unsecured debt if you qualify. With Chapter 13, you enter into a debt repayment plan in which you pay back some of what you owe. Medical debt, personal loans, and lines of credit are also types of unsecured debt that can be discharged through bankruptcy in San Francisco.