DeleteEmails deletes email addresses from authenticated user. GitHub API docs: https://docs.github.com/rest/users/emails?apiVersion=2022-11-28#delete-an-email-address-for-the-authenticated-user meta:operation DELETE /user/emails
(ctx context.Context, emails []string)
| 68 | // |
| 69 | //meta:operation DELETE /user/emails |
| 70 | func (s *UsersService) DeleteEmails(ctx context.Context, emails []string) (*Response, error) { |
| 71 | u := "user/emails" |
| 72 | req, err := s.client.NewRequest(ctx, "DELETE", u, emails) |
| 73 | if err != nil { |
| 74 | return nil, err |
| 75 | } |
| 76 | |
| 77 | return s.client.Do(req, nil) |
| 78 | } |
| 79 | |
| 80 | // SetEmailVisibility sets the visibility for the primary email address of the authenticated user. |
| 81 | // `visibility` can be "private" or "public". |