def remove_team(name, profile='github'):
 team_info = get_team(name, profile=profile)
 if (not team_info):
  log.error('Team {0} to be removed does not exist.'.format(name))
  return False
 try:
  client = _get_client(profile)
  organization = client.get_organization(_get_config_value(profile, 'org_name'))
  team = organization.get_team(team_info['id'])
  team.delete()
  return (list_teams(ignore_cache=True, profile=profile).get(name) is None)
 except github.GithubException as e:
  log.exception('Error deleting a team: {0}'.format(str(e)))
  return False

def remove_team ( name , profile = 'github' ) : team_info = get_team ( name , profile = profile ) if ( not team_info ) : log . error ( 'Team {0} to be removed does not exist.' . format ( name ) ) return False try : client = _get_client ( profile ) organization = client . get_organization ( _get_config_value ( profile , 'org_name' ) ) team = organization . get_team ( team_info [ 'id' ] ) team . delete ( ) return ( list_teams ( ignore_cache = True , profile = profile ) . get ( name ) is None ) except github . GithubException as e : log . exception ( 'Error deleting a team: {0}' . format ( str ( e ) ) ) return False
remove a github team .