A bankruptcy discharge eliminates debts, but it does not eliminate liens.
So, if you have a secured debt (a debt where the creditor has a lien on your property and can repossess it if you don't pay the debt), bankruptcy can eliminate the debt, but it does not prevent the creditor from repossessing the property.