Users can customize their courses drop-down menu to show just the courses you want to see for the current semester. You can use this to hide previous courses or future courses.
Detailed instructions and screenshots can be found in this Canvas Guides support article.