You mean, can you move out of your home and convert it back into an investment property? Given enough time and a different place to establish as your primary residence... but it isn't clear how much time you have.

I suggest consulting a bankruptcy lawyer. You should be able to get a free initial consultation.