Bankruptcy is a complex process, and it isn’t always clear whether it will get rid of your student loans or not. When you file for bankruptcy, you will be protected from collection action against your debts until the case is resolved, or until the creditor manages to get permission from the courts to collect on the debts.
It is sometimes possible to get student loan debt written off, but not always. For the courts to write off your student loans you have to prove that having to pay them off will cause you lasting hardship. That you will not be able to sustain a minimum standard of living while having to service that debt. This is not the same standard as you need to prove for consumer debts – you are supposed to take paying off student loans far more seriously. It is important that you consult with a lawyer, or a citizen’s advisor that can help with matters of bankruptcy, before filing, because it can have a significant impact on your credit rating for many years. There are fees associated with filing for bankruptcy, and the process is a long one so don’t enter it lightly.