prow/github/client.go
func (c *Client) RemoveTeamMembership(id int, user string) error {
	c.log("RemoveTeamMembership", id, user)
	if c.fake {
		return nil
	}
	_, err := c.request(&request{
		method:    http.MethodDelete,
		path:      fmt.Sprintf("/teams/%d/memberships/%s", id, user),
		exitCodes: []int{204},
	}, nil)
	return err
}
func (c *Client) RemoveTeamMembership(id int, user string) error {
	c.log("RemoveTeamMembership", id, user)
	if c.fake {
		return nil
	}
	_, err := c.request(&request{
		method:    http.MethodDelete,
		path:      fmt.Sprintf("/teams/%d/memberships/%s", id, user),
		exitCodes: []int{204},
	}, nil)
	return err
}
// RemoveTeamMembership removes the user from the team (but not the org).
//
// https://developer.github.com/v3/teams/members/#remove-team-member