You need to qualify the bankruptcy means test. If your present monthly income is lower than state median income then the repayment plan would be for three years, if not ordered otherwise by the court and if it is greater then the repayment plan would be for five years. Along with the income requirement the other criteria that you need to satisfy are,
Your total unsecured debt mustn't exceed
$336,900. The limit for secured debt is $1,010,650.
You are required to participate in a mandatory credit conselling from an approved credit counsellor 180 days prior to filing bk.
You can't file bankruptcy within 180 days of dismissing previous bk.
You may need to contact a bk lawyer to help you with filing. Most of them would do the first counselling free of cost.