A Chapter 7 bankruptcy can remain on your credit report for up to 10 years.