Hello @ZainabFatima,
Are you referring to your Canvas Dashboard (Recent Activity view) or the All Courses list? Here are a few user guides, if you are an instructor:
If the issue is that your To Do list showing things from older courses, it's probably because there have been new submissions made in those old courses.
If the issue is that your Dashboard Card View shows fewer courses (the current ones) than your All Courses list, it's probably because you have favorited some courses and those are the ones showing up in Card View. And again if in the Recent Activity view it's showing the older courses, it's because there have been new submissions made in those old courses.
Hoping you figure out your preferred view,
Cheers - Shar ⭐