Attorney’s fees to produce taxable income are deductible. Since part of the disability payments is included in gross income, part of the attorney’s fees is deductible. However, you treat them as a miscellaneous itemized deduction, which means:
You’ll have to run the numbers to see whether you actually get any tax benefit from deducting attorney’s fees.
When debts are cancelled in bankruptcy cases, the cancelled amount is excluded from gross income. Tax attributes are certain losses, credits, and property basis that must be reduced to the extent of the exclusion.