When you file for bankruptcy any debt that is secured is not included. That means that you still get foreclosed on and they get your house. When you file for bankruptcy you need to pay your mortgage, notes on tools and equipment as well as your car note or they will get taken back.