def _remove_discussion_tab(course, user_id):
 course.tabs = [tab for tab in course.tabs if (not (tab.type == 'discussion'))]
 modulestore().update_item(course, user_id)

def _remove_discussion_tab ( course , user_id ) : course . tabs = [ tab for tab in course . tabs if ( not ( tab . type == 'discussion' ) ) ] modulestore ( ) . update_item ( course , user_id )
remove the discussion tab for the course .