credit card debts

How long can collection agencies try to collect on credit card debts?
I had an old credit card debt from ten years ago. My husband died and I could not pay it . It was not a large amount. About 400. I am confused. I thought tha I was told that it would be listed by the company as “written off” debt which meant it was gone. Now a collection agency is calling.
SCH is correct.
People tend to get time-lines confused. Bad credit can show on your credit report for 7-years. But collection companies can try to collect forever.
Your States statute of limitations laws will prevent them form taking you to court if the S.O.L. has expired, but it will not keep them from trying.
Check out what the S.O.L. is for your State and if it is expired, the next time they contact you tell them to pound sand. There is nothing they can legally do to you.