Depends on where you are in the bankruptcy-proceedings?
Check with your federal-bankruptcy-court clerk or trustee.
Your-primary-residence is normally-excluded from your-liquidated-assets in bankruptcy,
if you sell your-primary-residence,
then after your-secured-mortgage(s) are paid,
any-proceeds should be used to pay your-other-creditors.
A-"like-kind-exchange" might be used to "trade" into another-primary-residence,
shielding sale-proceeds from other-creditors.