Neither of us are lawyers (based on your profile), but there are two modern forms of bankruptcy in the U.S: Chapter 7, liquidation which does discharge your debts, or Chapter 13, which is restructuring. In a chapter 7 bankruptcy, you have to pass the means test, which checks if your household income is below the median income of your state:
> The means test looks at the gross income of everyone in your household during the six months before you file. If your household income is below the median income in your state, you’ll qualify to file a Chapter 7 bankruptcy.
If it isn't, then the courts can force your chapter 7 case be converted to a chapter 13. But if someone, say, lives alone and still works at their minimum-wage job from college, I don't see anything else that would prevent a chapter 7 from proceeding.
https://www.nolo.com/legal-encyclopedia/chapter-7-bankruptcy....