You can literally look this up on the topic of bankruptcy.
I use to counsel clients and speak to bankruptcy lawyers, credit bureaus and fed and private loan providers and it was always no this was never a thing even with the lawyers even
Student Loan Bankruptcy
Student loans are difficult, but not impossible, to discharge in bankruptcy. To do so, you must show that payment of the debt “will impose an undue hardship on you and your dependents.”
Like I said, it's always been possible but difficult to pull, which is why you've rarely heard of it happening over the years




