Bankruptcy is all about full disclosure. Tell the trustee or court whatever assets you have and in return you receive a full discharge of most debt. The reason I say most debt is because there are rules re: IRS debt, student loan debt and secured debt such as vehicles, 401k loans, etc.
One thing that is often overlooked is potential consumer claims that a debtor may have in bankruptcy. Things like claims against credit furnishers, debt collectors etc. Not only should you disclose these potential claims in order to receive the discharge in bankruptcy, but by failing to disclose the claims you will face hurdles in pursuing them later.
Often a bankruptcy trustee doesn’t want to pursue the claim and simply abandons it. Then you are free to pursue either during the bankruptcy or thereafter. You also may have unused exemptions to protect such a claim in case you want to raise it later.