def remove_course_content_user_milestones(course_key, content_key, user, relationship):
 if (not settings.FEATURES.get('MILESTONES_APP')):
  return []
 course_content_milestones = milestones_api.get_course_content_milestones(course_key, content_key, relationship)
 for milestone in course_content_milestones:
  milestones_api.remove_user_milestone({'id': user.id}, milestone)

def remove_course_content_user_milestones ( course_key , content_key , user , relationship ) : if ( not settings . FEATURES . get ( 'MILESTONES_APP' ) ) : return [ ] course_content_milestones = milestones_api . get_course_content_milestones ( course_key , content_key , relationship ) for milestone in course_content_milestones : milestones_api . remove_user_milestone ( { 'id' : user . id } , milestone )
removes the specified user-milestone link from the system for the specified course content module .