def _delete_entrance_exam(request, course_key):
 store = modulestore()
 course = store.get_course(course_key)
 if (course is None):
  return HttpResponse(status=400)
 remove_entrance_exam_milestone_reference(request, course_key)
 course = store.get_course(course_key)
 if course.entrance_exam_id:
  metadata = {'entrance_exam_enabled': False, 'entrance_exam_minimum_score_pct': None, 'entrance_exam_id': None}
  CourseMetadata.update_from_dict(metadata, course, request.user)
  remove_entrance_exam_graders(course_key, request.user)
 return HttpResponse(status=204)

def _delete_entrance_exam ( request , course_key ) : store = modulestore ( ) course = store . get_course ( course_key ) if ( course is None ) : return HttpResponse ( status = 400 ) remove_entrance_exam_milestone_reference ( request , course_key ) course = store . get_course ( course_key ) if course . entrance_exam_id : metadata = { 'entrance_exam_enabled' : False , 'entrance_exam_minimum_score_pct' : None , 'entrance_exam_id' : None } CourseMetadata . update_from_dict ( metadata , course , request . user ) remove_entrance_exam_graders ( course_key , request . user ) return HttpResponse ( status = 204 )
internal workflow operation to remove an entrance exam .