The current standard for hardship generally interpreted as requiring a finding by the bankruptcy court that the debtor cannot maintain a minimally adequate standard of living andrepay the student loan. That's a very hard standard to meet, and you would have the burden of proving hardship through an adversary hearing.

In some jurisdictions a bankruptcy judge may find that you can repay a portion of the loan without hardship, discharging the balance. A local bankruptcy lawyer - and I suggest that you consult a bankruptcy lawyer - can advise you as to local practice.