The length of time a bankruptcy remains on your credit report depends upon which type of bankruptcy you file. Chapters 7, 11 and 12 remain for 10 years. A Chapter 13 bankruptcy (in which you repay part or all of your debts under a court-approved payment plan) remains on your credit report seven years.
There is no legal way to remove it earlier than that unless it is not yours. You can however still improve your credit score and receive credit with a bankruptcy showing in our report.
Here is some information on to legally repair your credit and improve your credit score.
http://confidentlifestyle.com/Documents/fix%20credit.pdf
Good luck and best wishes.