The classic version of Yahoo Mail will soon be discontinued. - At that time, you'll be upgraded to the latest version of Yahoo Mail or basic Mail, depending on your browser's compatibility. Learn more about the latest version of Yahoo Mail at https://upgrade.mail.yahoo.com/.

Should I delete my contacts if my account was hacked?

No. If your contacts are receiving spam from your account, deleting their addresses won't help. The hacker would have already saved any info they wanted from your account before sending the spam messages.

If your account was compromised, you should immediately take steps to secure your account.