'Delete the course_index from the persistence mechanism whose id is the given course_index'

def delete_course_index(self, course_key):

    with TIMER.timer('delete_course_index', course_key):
        query = {key_attr: getattr(course_key, key_attr) for key_attr in ('org', 'course', 'run')}
        return self.course_index.remove(query)
