There are two types of Bankruptcy
Chapter 7 is debt forgiveness (which to me is a misnomer because there is not much forgiveness involved where the creditors are concerned). I don't know much about Chapter 7, but I know you can give up the car, the house, the credit cards, etc that you can't make (or don't want to make) payments on. It is quicker than 13, but you keep almost nothing.
Chapter 13 is debt repayment. I have been in Chapter 13 personally. It's more complicated than 7 and is based on formula's the court uses involving your current DTI (debt to income ratio). You may choose to keep the car(s), the house, etc. provided you have a decent DTI and can keep the payments current, OR, you can voluntarily choose to give up the car, RV, boat, etc. that you don't want to make payments on. For credit cards, if they have a zero balance, you don't have to include them, but once the creditor is aware you've filed BK, they may close them - it's their decision.
For Chapter 13 - regarding the past due payments on those items you want to keep, they are tallyed up and then a repayment plan is devised based on what your disposable income is - disposable income is that portion of your income left after paying on the items you are keeping (house, car, etc) and your monthly expenses for utilities, fuel, auto insurance, food, home insurance, etc. Your repayment plan is tailored to your specific situation. It may be two years, three years, or up to five years based on 1) the total you owe and 2) your disposable income.
As always, seek legal counsel for up-to-date information and any possible changes to bankruptcy laws.
I hope this helps....