If you file for bankruptcy in California and your car is valued at more than twice your debts, is paid off, and is your only means of transportation to work, the car may be exempt from liquidation and you could keep it. Selling the car before filing bankruptcy could help avoid any risk of losing it in the bankruptcy process.