Almost all consumer bankruptcies are voluntary. Involuntary ones are mostly for businesses. Joint cases with your spouse save time and money.
If you have an “asset” Chapter 7 case, some or all of your debts are partially paid, with most or all of the remaining amounts written off.
Your debts can be “secured,” “priority,” or “general unsecured.” How bankruptcy treats your debts depends on which kind they are.