There are different ways to enter bankruptcy in the US.
Chapter 11 is to have the company reorgainised under a courts supervision in order to stay in business and at some point exit Chapter 11 and resume business.
The court can grant relief from some or all of the debts (i.e. creditors) during Chapter 11.