You can change the course settings as long as neither a teacher nor a student is enrolled in the course.