The bankruptcy code allows certain types of debts to be forgiven when a consumer successfully files for bankruptcy.