'Remove the supplied courses from this user\'s configured role.'

def remove_courses(self, *course_keys):

    entries = CourseAccessRole.objects.filter(user=self.user, role=self.role, course_id__in=course_keys)
    entries.delete()
    if hasattr(self.user, '_roles'):
        del self.user._roles
