Does filing ch7 bankrupt eliminate student loan?

Virtually all student loans are not dischargeable, unless you can show a hardship - something more than the inability to pay. Disability, new child with severe medical problems, something on that line.

If the loan was for a school that turns out to be a scam, it may be dischargeable.