Can COD income ever be excluded from my gross income?
You may be able to exclude all or part of the cancelled debt income if all or part of the debt was discharged in bankruptcy, if you were insolvent immediately before the transfer, or if the debt is a qualified farm debt or qualified real property indebtedness. Refer to Publication 908 (PDF),Bankruptcy Tax Guide.