The best advice is to take some time to figure out what went wrong and make some changes. You say your credit is shot, why? What can you learn from what created that situation to avoid in the future?
You need some great advice, but this forum can't do more than provide the beginning of that. You need some financial counseling from someone who is trained and successful in helping people in positions like you find yourself. Dave Ramsey comes to mind, but I don't completely agree with all his positions. You can do worse though so see if there are any local classes offered by his group. You can Google them.
Getting out of debt, staying out of debt, using debt as a tool but not a trap is hard, but it can be done.
Before you make any decisions on selling and your next move, learn all you need to to do it right this time. Best of luck.