Deleting from a Collection Variable

Deleting from a Collection Variable

Hi All

I have a collection variable, obtained like this course_Options = Schedule_Courses[Start_Date_Time == time]; 

This give me a collection variable of courses starting at the above time.

If I wanted to remove one of the results from that collection variable, how would I go about that. Effectively I want to remove some undesired results before iterating through the course_Options and doing things with the remaining courses in the collection variable.

Is there a way to remove from a collection variable? I have tried:

for each course in course_Options
{
      if (course.ID == ID I want to remove)
      {
            course_Options.delete(course);
      }
}

I've also tried to delete with course.ID. 

I feel like there is something I am missing as I'm sure you'd be able to delete from a collection variable?

Thanks
Carl