code: func (ag AffinityGroup) Delete(ctx context.Context, client *Client) error {
  	if ag.ID == nil && ag.Name == "" {
  		return fmt.Errorf("an Affinity Group may only be deleted using ID or Name")
  	}
  
  	req := &DeleteAffinityGroup{}
  
  	if ag.ID != nil {
  		req.ID = ag.ID
  	} else {
  		req.Name = ag.Name
  	}
  
  	return client.BooleanRequestWithContext(ctx, req)
  }
docs: // Delete removes the given Affinity Group