RemoveMember removes a user from all teams of an organization. GitHub API docs: https://docs.github.com/rest/orgs/members?apiVersion=2022-11-28#remove-an-organization-member meta:operation DELETE /orgs/{org}/members/{username}
(ctx context.Context, org, user string)
| 143 | // |
| 144 | //meta:operation DELETE /orgs/{org}/members/{username} |
| 145 | func (s *OrganizationsService) RemoveMember(ctx context.Context, org, user string) (*Response, error) { |
| 146 | u := fmt.Sprintf("orgs/%v/members/%v", org, user) |
| 147 | req, err := s.client.NewRequest(ctx, "DELETE", u, nil) |
| 148 | if err != nil { |
| 149 | return nil, err |
| 150 | } |
| 151 | |
| 152 | return s.client.Do(req, nil) |
| 153 | } |
| 154 | |
| 155 | // CancelInvite cancels an organization invitation. |
| 156 | // |