Even though the mortgage was discharged in your Bankruptcy, you continue to own the property until it is sold at a foreclosure sale. The bank has not cancelled the debt - they have to show a zero balance due because they cannot legally collect that money from you.
Since you still own the property, you can
sell the property, but you have to satisfy the lien that is still on the property, and which cannot be removed in a Bankruptcy.
You can contact the bank to find out how much money they want to remove the lien, and then you can sell the property as long as you can sell it for enough to pay off the lien.
Since you still own the property, you also still have the right to collect the rent
. If there are squatters, you can have them evicted.
I think this is what you wanted to know. If not, please let me know.