In order to remove the flag for a course (Courses need teachers and/or sections added), you will need to remove the sections, the recommendations, and any course requests tied to that course.