There is cost to filing bankruptcy. The cost depends on the value of assets (primary home, car, etc.) that you want to keep and the surplus income you household may have. The cost paid is paid to the bankruptcy trustee that is handling the filing. They keep a fee for the administration of the proposal and the rest is remitted to your creditors as a partial settlement toward your debt. Each case is different.