When, if ever, is bad debt erased from your credit? How long can debt stay on your record?

I have previously heard that after 7 years the debt is written off, and the companies no longer report to the credit bureaus. I am trying to find more information so I know what my next step should be. Thank you.
8 answers 8