code: def delete_course_references(course_key):
      
      [_inactivate_record(record) for record in internal.OrganizationCourse.objects.filter(
          course_id=text_type(course_key),
          active=True
      )]
docs: Inactivates references to course keys within this app (ref: receivers.py and api.py)