Don’t lose retirement in bankruptcy. If you have a standard kind of retirement account, like a IRA, 401K, 403b account, it is almost certainly protected in both Chapter 7 and Chapter 13 bankruptcy.
Unfortunately, many people do end up losing their retirement accounts. This can be avoided by proper planning and knowing what to do, and what not to do, with your retirement funds.