In the course settings, there should be an option to select a specific date on which students’ access to the course content ends.