The goal of consumer bankruptcy is almost always the bankruptcy discharge. But a discharge can be denied for many reasons, most of which involve fraud or mismanagement of your property, financial records, or the bankruptcy process itself.
Updated