Bankruptcy can be an effective way to eliminate significant debt. At the same time, the process is time-consuming and often results in a debtor losing ownership of some amount of property. It will also hurt your credit and you will not be able to file again for at least 2-8 years (depending on the type of bankruptcy you filed).
For these reasons, you might want to consider other options first. These include: debt settlement, restructuring and consolidating your debt, selling property, and evaluating your income and expenses.