A lot of people who are unable to maintain their credit in good standing end up filing for bankruptcy. It may not be through a fault of their own but they would need to undergo the process regardless of whose fault it is especially that our financial system is both deaf and blind to personal circumstances that normal people go through.
However, there are indeed a lot of people who end up bankrupt because of their own mistake. They might have had a lot of high interest loans for bad credit like unsecured signature loans that they unnecessarily applied for just to finance a lifestyle that is way beyond their means.
Whatever the reason may be, your assets would need to be liquidated so that all your debts can be paid during bankruptcy. A lot of people feel that all their credit cards will be taken away once this happens although this is not exactly true.
The credit cards that have balances on them would need to be declared as debt therefore they have to be taken away from you. However, if you have credit cards that have no balances, then you would still be able to keep them unless the issuer of the card is no longer comfortable in retaining your business especially that you have just gone through bankruptcy. Those who will decide to keep you on the other hand might change the terms and conditions on the card. They might increase its interest rate and decrease the credit limit.
Nevertheless, you need not worry about ending up with no credit cards because there will still be a lot of credit card offers that will come your way. What you have to concentrate on is to get back up on your feet again and not commit the same mistakes that resulted to your bankruptcy.