def remove_entrance_exam_milestone_reference(request, course_key):
 course_children = modulestore().get_items(course_key, qualifiers={'category': 'chapter'})
 for course_child in course_children:
  if course_child.is_entrance_exam:
   delete_item(request, course_child.scope_ids.usage_id)
   milestones_helpers.remove_content_references(unicode(course_child.scope_ids.usage_id))

def remove_entrance_exam_milestone_reference ( request , course_key ) : course_children = modulestore ( ) . get_items ( course_key , qualifiers = { 'category' : 'chapter' } ) for course_child in course_children : if course_child . is_entrance_exam : delete_item ( request , course_child . scope_ids . usage_id ) milestones_helpers . remove_content_references ( unicode ( course_child . scope_ids . usage_id ) )
remove content reference for entrance exam .