Are bankruptcy fees tax deductible?

Bankruptcy discharge paperwork

Are bankruptcy cost and fees considered tax deductible? When looking at that kind of tax deductions that are available when you are in bankruptcy you first need to understand that there are difference depending on the kind of bankruptcy case you filed be it Chapter 7 or Chapter 13.