Your home is a secured debt. If you wish to stay in it, it will remain subject to the mortgage. If you owe more than the property is worth you should discuss with your bankruptcy lawyer the possibility of discharging the difference between what the property is worth and what you owe.