After your divorce may well be the least desirable time to declare chapter 7 bankruptcy. You can still discharge your personal debts. With some exceptions obligations to your former spouse will not be discharged to the extent you are ordered to protect them from the creditors in a separation agreement or divorce decree.
In a nutshell, you can discharge the actual debt, but if you are so ordered in a divorce decree or separation agreement, you still have the obligation to make the payment on behalf of your ex. The only way to discharge the obligations created in a final divorce is in Chapter 13.
This is why I strongly encourage declaring bankruptcy before the final divorce papers are signed and filed with the court.
Other than this exception to discharge in chapter 7 you are like any other single person filing for bankruptcy relief. If there is a silver lining here, once the divorce case is over you will have a final bill from your lawyer. You can discharge any balance due to your own divorce attorney, but not your ex’s if the court ordered you to pay that bill.
Another benefit to filing after divorce is that child support and spousal support, referred to in bankruptcy as Domestic Support Obligations, will be a dollar for dollar deduction from income for both your good faith analysis and means test to determine which bankruptcy chapter you qualify to file. If you are on the receiving end of things, child and spousal support are income for the good faith and means test analysis, but child support is backed out from the means test in chapter 13.
It all sounds complicated. It can be. That is why you need an experienced bankruptcy attorney. It is better to eliminate your debt either before filing divorce, or during the case. Joint filing is best. There are enough personal issues you will have to address without the nagging pressure of the debt of your past life.